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

C2 compilation fails with assert "n is later than its clone"

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b19

      Backports

        Description

        # A fatal error has been detected by the Java Runtime Environment:
        #
        # Internal Error (/oracle/jdk/open/src/hotspot/share/opto/loopopts.cpp:1501), pid=332405, tid=332418
        # assert(dom_depth(n_ctrl) <= dom_depth(x_ctrl)) failed: n is later than its clone


        Current CompileTask:
        C2: 596 393 b 4 MainClass::test (55 bytes)

        Stack: [0x00007ff082238000,0x00007ff082339000], sp=0x00007ff082333260, free space=1004k
        Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
        V [libjvm.so+0x12ff474] PhaseIdealLoop::split_if_with_blocks_post(Node*)+0xcf4
        V [libjvm.so+0x12ff9b1] PhaseIdealLoop::split_if_with_blocks(VectorSet&, Node_Stack&)+0x201
        V [libjvm.so+0x12f3f9d] PhaseIdealLoop::build_and_optimize(LoopOptsMode)+0x121d
        V [libjvm.so+0xa2a5fb] PhaseIdealLoop::optimize(PhaseIterGVN&, LoopOptsMode)+0x32b
        V [libjvm.so+0xa267d6] Compile::Optimize()+0x586
        V [libjvm.so+0xa295b5] Compile::Compile(ciEnv*, ciMethod*, int, bool, bool, bool, bool, DirectiveSet*)+0x1905
        V [libjvm.so+0x853a7a] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x1ea
        V [libjvm.so+0xa39401] CompileBroker::invoke_compiler_on_method(CompileTask*)+0xf21
        V [libjvm.so+0xa3a0a8] CompileBroker::compiler_thread_loop()+0x5a8
        V [libjvm.so+0x1863181] JavaThread::thread_main_inner()+0x271
        V [libjvm.so+0x186b2c0] Thread::call_run()+0x100
        V [libjvm.so+0x1556df6] thread_native_entry(Thread*)+0x116

          Attachments

          1. hs_err_pid332405.log
            65 kB
          2. MainClass.java
            0.4 kB
          3. replay_pid332405.log
            123 kB

            Issue Links

              Activity

                People

                Assignee:
                roland Roland Westrelin
                Reporter:
                thartmann Tobias Hartmann
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: