JDK-6834142 : method->print_codes(): Error: ShouldNotReachHere()
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: hs16
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: solaris_10
  • CPU: sparc
  • Submitted: 2009-04-24
  • Updated: 2011-03-08
  • Resolved: 2011-03-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7 Other
6u18Fixed 7Fixed hs16Fixed
Related Reports
Relates :  
Description
It is low priority since it is only debugging issue.

I got next failure when a method bytecode is printed:

% gamma jnt.scimark2.commandline
CompilerOracle: print jnt/scimark2/Random.nextDouble

#  Internal Error (src/share/vm/interpreter/bytecodeTracer.cpp:484), pid=4013, tid=1
#  Error: ShouldNotReachHere()

I think, it is because the next line was removed in 6655646 changes in
src/share/vm/interpreter/bytecodeTracer.cpp

 void BytecodePrinter::print_attributes(Bytecodes::Code code, int bci, outputStream* st) {
   // Show attributes of pre-rewritten codes
-  code = Bytecodes::java_code(code);
   // If the code doesn't have any fields there's nothing to print.

Bytecode is:

[t@1 l@1]: print code
code = _fast_aaccess_0
[t@1 l@1]: print Bytecodes::java_code(code)
Bytecodes::java_code(code) = _aload_0

The code passed when I restored the line.

Comments
EVALUATION http://hg.openjdk.java.net/jdk7/hotspot/hotspot/rev/3672e1dac765
28-04-2009