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

[lworld] C2 compilation fails with assert "no node with a side effect"

XMLWordPrintable

      compiler/valhalla/inlinetypes/TestAcmpWithUnstableIf.java fails with "-XX:+UnlockDiagnosticVMOptions -XX:-TieredCompilation -XX:+StressUnstableIfTraps":

      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/workspace/open/src/hotspot/share/opto/loopopts.cpp:1893), pid=2287870, tid=2287910
      # assert(false) failed: no node with a side effect
      #
      # JRE version: Java(TM) SE Runtime Environment (25.0+1) (fastdebug build 25-valhalla+1-LTS-170)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 25-valhalla+1-LTS-170, mixed mode, sharing, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0x15b5c7b] PhaseIdealLoop::try_sink_out_of_loop(Node*) [clone .part.0]+0xc8b

      Current CompileTask:
      C2:688 296 % TestAcmpWithUnstableIf::main @ 38 (420 bytes)

      Stack: [0x00007f3e40ffe000,0x00007f3e410fe000], sp=0x00007f3e410f8b30, free space=1002k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x15b5c7b] PhaseIdealLoop::try_sink_out_of_loop(Node*) [clone .part.0]+0xc8b (loopopts.cpp:1893)
      V [libjvm.so+0x15b5d59] PhaseIdealLoop::split_if_with_blocks_post(Node*) [clone .part.0]+0x99 (loopopts.cpp:1859)
      V [libjvm.so+0x15b6ec8] PhaseIdealLoop::split_if_with_blocks(VectorSet&, Node_Stack&)+0xa8 (loopopts.cpp:1548)
      V [libjvm.so+0x15a7798] PhaseIdealLoop::build_and_optimize()+0x12a8 (loopnode.cpp:4864)
      V [libjvm.so+0xb81810] PhaseIdealLoop::optimize(PhaseIterGVN&, LoopOptsMode)+0x4c0 (loopnode.hpp:1173)
      V [libjvm.so+0xb78724] Compile::optimize_loops(PhaseIterGVN&, LoopOptsMode)+0xb4 (compile.cpp:2734)
      V [libjvm.so+0xb7bebc] Compile::Optimize()+0x16ac (compile.cpp:3010)
      V [libjvm.so+0xb7e71f] Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x201f (compile.cpp:882)
      V [libjvm.so+0x989d74] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x484 (c2compiler.cpp:143)
      V [libjvm.so+0xb8dc78] CompileBroker::invoke_compiler_on_method(CompileTask*)+0xb58 (compileBroker.cpp:2323)
      V [libjvm.so+0xb8ee38] CompileBroker::compiler_thread_loop()+0x568 (compileBroker.cpp:1967)
      V [libjvm.so+0x110e20b] JavaThread::thread_main_inner()+0x13b (javaThread.cpp:773)
      V [libjvm.so+0x1bb5d66] Thread::call_run()+0xb6 (thread.cpp:243)
      V [libjvm.so+0x17fd218] thread_native_entry(Thread*)+0x128 (os_linux.cpp:868)

            mhaessig Manuel Hässig
            thartmann Tobias Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: