JDK-8043637 : compiler/ciReplay/TestSA.sh: java.lang.InternalError: missing reason for 17
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 9
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2014-05-21
  • Updated: 2014-05-21
  • Resolved: 2014-05-21
Related Reports
Duplicate :  
Description
Exception in thread "main" java.lang.InternalError: missing reason for 17
	at sun.jvm.hotspot.oops.MethodData.initialize(MethodData.java:185)
	at sun.jvm.hotspot.oops.MethodData.access$000(MethodData.java:36)
	at sun.jvm.hotspot.oops.MethodData$1.update(MethodData.java:126)
	at sun.jvm.hotspot.runtime.VM.registerVMInitializedObserver(VM.java:394)
	at sun.jvm.hotspot.oops.MethodData.<clinit>(MethodData.java:124)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:409)
	at sun.jvm.hotspot.runtime.VMObjectFactory.newObject(VMObjectFactory.java:58)
	at sun.jvm.hotspot.runtime.VirtualBaseConstructor.instantiateWrapperFor(VirtualBaseConstructor.java:104)
	at sun.jvm.hotspot.oops.Metadata.instantiateWrapperFor(Metadata.java:68)
	at sun.jvm.hotspot.oops.MetadataField.getValue(MetadataField.java:43)
	at sun.jvm.hotspot.ci.ciMetadata.getMetadata(ciMetadata.java:51)
	at sun.jvm.hotspot.ci.ciMetadata.toString(ciMetadata.java:63)
	at java.lang.String.valueOf(String.java:2981)
	at java.lang.StringBuilder.append(StringBuilder.java:131)
	at sun.jvm.hotspot.ci.ciEnv.dumpReplayData(ciEnv.java:90)
	at sun.jvm.hotspot.CommandProcessor$5.doit(CommandProcessor.java:543)
	at sun.jvm.hotspot.CommandProcessor.executeCommand(CommandProcessor.java:1951)
	at sun.jvm.hotspot.CommandProcessor.executeCommand(CommandProcessor.java:1921)
	at sun.jvm.hotspot.CommandProcessor.run(CommandProcessor.java:1801)
	at sun.jvm.hotspot.CLHSDB.run(CLHSDB.java:99)
	at sun.jvm.hotspot.CLHSDB.main(CLHSDB.java:40)

RULE compiler/ciReplay/TestSA.sh Exception java.lang.InternalError: missing reason for ...
Comments
The problem is a couple of missing entries in vmStructs.cpp: diff --git a/src/share/vm/runtime/vmStructs.cpp b/src/share/vm/runtime/vmStructs.cpp --- a/src/share/vm/runtime/vmStructs.cpp +++ b/src/share/vm/runtime/vmStructs.cpp @@ -2498,6 +2498,9 @@ declare_constant(Deoptimization::Reason_age) \ declare_constant(Deoptimization::Reason_predicate) \ declare_constant(Deoptimization::Reason_loop_limit_check) \ + declare_constant(Deoptimization::Reason_speculate_class_check) \ + declare_constant(Deoptimization::Reason_speculate_null_check) \ + declare_constant(Deoptimization::Reason_rtm_state_change) \ declare_constant(Deoptimization::Reason_LIMIT) \ declare_constant(Deoptimization::Reason_RECORDED_LIMIT) \ \
21-05-2014