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

C2 asserts in Assembler::addr_nop_5 with -XX:-UseAddressNop

XMLWordPrintable

      java -Xcomp -XX:-TieredCompilation -XX:-UseAddressNop -XX:CompileCommand=quiet -XX:CompileCommand=compileonly,java.lang.Thread::run Test.java

      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (workspace/open/src/hotspot/cpu/x86/assembler_x86.cpp:1452), pid=2813057, tid=2813075
      # assert(UseAddressNop) failed: no CPU support
      #
      # JRE version: Java(TM) SE Runtime Environment (25.0+26) (fastdebug build 25-ea+26-LTS-3300)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 25-ea+26-LTS-3300, compiled mode, sharing, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0x6d9355] Assembler::addr_nop_5()+0xe5

      Current CompileTask:
      C2:77 19 b java.lang.Thread::run (23 bytes)

      Stack: [0x00007d6318a00000,0x00007d6318b00000], sp=0x00007d6318afb670, free space=1005k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x6d9355] Assembler::addr_nop_5()+0xe5 (assembler_x86.cpp:1452)
      V [libjvm.so+0x4045d8] CallStaticJavaDirectNode::emit(C2_MacroAssembler*, PhaseRegAlloc*) const+0x538
      V [libjvm.so+0x177be34] PhaseOutput::scratch_emit_size(Node const*)+0x4a4
      V [libjvm.so+0x17739ef] PhaseOutput::shorten_branches(unsigned int*)+0x36f
      V [libjvm.so+0x17868a3] PhaseOutput::Output()+0xa13
      V [libjvm.so+0xb238b0] Compile::Code_Gen()+0xa20
      V [libjvm.so+0xb28be3] Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x2033
      V [libjvm.so+0x94fe57] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x467
      V [libjvm.so+0xb37f18] CompileBroker::invoke_compiler_on_method(CompileTask*)+0xb58
      V [libjvm.so+0xb390e8] CompileBroker::compiler_thread_loop()+0x578
      V [libjvm.so+0x108590b] JavaThread::thread_main_inner()+0x13b
      V [libjvm.so+0x1ad1746] Thread::call_run()+0xb6
      V [libjvm.so+0x1759058] thread_native_entry(Thread*)+0x128

      Looks like a regression from JDK-8286666.

        1. hs_err_pid2813736.log
          69 kB
          Tobias Hartmann
        2. replay_pid2813736.log
          148 kB
          Tobias Hartmann
        3. Test.java
          0.1 kB
          Tobias Hartmann

            aph Andrew Haley
            thartmann Tobias Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: