Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6834142

method->print_codes(): Error: ShouldNotReachHere()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • hs16
    • hs16
    • hotspot
    • b02
    • sparc
    • solaris_10
    • Verified

        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.

              kvn Vladimir Kozlov
              kvn Vladimir Kozlov
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: