Skip to content

IBM J9 VM should also have INVOKEDYNAMIC_DEFAULT = false #477

@bruceadams

Description

@bruceadams

Running JRuby 1.7.1 on

$ java -fullversion
java full version JRE 1.7.0 IBM Linux build pxi3270sr3-20121025_01(SR3)

will occasionally crash. They key error message associated with the crash appears to be:

sunvmi.211    *   ** ASSERTION FAILED ** at sunvmi.c:498: ((accessClass) != NULL)

Ideally the code in https://github.com/jruby/jruby/blob/master/src/org/jruby/util/cli/Options.java would recognize the IBM VM and disable invokedynamic by default.

Some of the relevant Java System Properties for the IBM VM:

irb(main):004:0> java_import java.lang.System
=> [Java::JavaLang::System]
irb(main):005:0> System.getProperty('java.vm.name')
=> "IBM J9 VM"
irb(main):006:0> System.getProperty('java.vm.version')
=> "2.6"
irb(main):007:0> System.getProperty('java.specification.version')
=> "1.7"

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions