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

C2 compilation fails with "dead loop detected"

XMLWordPrintable

      compiler/c2/TestDeadLoopSplitIfLoop.java failed twice with:

      dist dump
      ---------------------------------------------
         4 0 Root === 0 217 216 136 165 181 |193 [[ 0 1 3 21 22 23 26 27 196 31 33 45 49 73 218 109 120 131 152 160 176 192 241 ]]
         3 45 ConI === 0 [[ 48 232 ]] #int:1
         3 1 Con === 0 [[ ]] #top
         2 232 If === 1 45 [[ 235 234 ]] P=0.999999, C=-1.000000 !orig=[157] !jvms: TestDeadLoopSplitIfLoop::test @ bci:55 (line 58)
         1 234 IfTrue === 232 [[ 166 ]] #1
         0 166 CastPP === 234 166 [[ 166 193 177 177 ]] #long[int:>=0] (java/lang/Cloneable,java/io/Serializable):NotNull:exact * !orig=240 !jvms: TestDeadLoopSplitIfLoop::test @ bci:55 (line 58)

      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (c:\sb\prod\1728431921\workspace\open\src\hotspot\share\opto\phaseX.cpp:784), pid=10516, tid=16152
      # assert(no_dead_loop) failed: dead loop detected

      Current CompileTask:
      C2:391 16 b compiler.c2.TestDeadLoopSplitIfLoop::test (88 bytes)

      Stack: [0x0000007238600000,0x0000007238700000]
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [jvm.dll+0xcf3c61] os::win32::platform_print_native_stack+0x101 (os_windows_x86.cpp:235)
      V [jvm.dll+0xfbd00d] VMError::report+0x148d (vmError.cpp:1011)
      V [jvm.dll+0xfbf68d] VMError::report_and_die+0x80d (vmError.cpp:1846)
      V [jvm.dll+0xfbfd84] VMError::report_and_die+0x64 (vmError.cpp:1611)
      V [jvm.dll+0x5887fb] report_vm_error+0x5b (debug.cpp:193)
      V [jvm.dll+0xd3900d] PhaseGVN::dead_loop_check+0x18d (phaseX.cpp:784)
      V [jvm.dll+0xd3eb89] PhaseIterGVN::transform_old+0xa9 (phaseX.cpp:1197)
      V [jvm.dll+0xd3b0b1] PhaseIterGVN::optimize+0x261 (phaseX.cpp:1047)
      V [jvm.dll+0x5126a4] Compile::Optimize+0x1a4 (compile.cpp:2241)
      V [jvm.dll+0x51048f] Compile::Compile+0x113f (compile.cpp:853)
      V [jvm.dll+0x41a609] C2Compiler::compile_method+0x179 (c2compiler.cpp:145)
      V [jvm.dll+0x52d527] CompileBroker::invoke_compiler_on_method+0x747 (compileBroker.cpp:2306)
      V [jvm.dll+0x52ab9b] CompileBroker::compiler_thread_loop+0x33b (compileBroker.cpp:1962)
      V [jvm.dll+0x851e06] JavaThread::thread_main_inner+0x266 (javaThread.cpp:760)
      V [jvm.dll+0xf1e474] Thread::call_run+0x1b4 (thread.cpp:239)
      V [jvm.dll+0xcf22c7] thread_native_entry+0xd7 (os_windows.cpp:554)
      C [ucrtbase.dll+0x2268a] (no source info available)
      C [KERNEL32.DLL+0x17ac4] (no source info available)
      C [ntdll.dll+0x5a4e1] (no source info available)

            chagedorn Christian Hagedorn
            thartmann Tobias Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: