C2: Dead loop constructed with CastPP in late inlining

XMLWordPrintable

      Deeper CTW testing (JDK-8360557) often catches fire in the same place.

      $ CONF=linux-x86_64-server-fastdebug make images test TEST=applications/ctw/modules/java_desktop.java TEST_VM_OPTS="-ea -esa -Djdk.test.lib.random.seed=630409878273249763"

      # Internal Error (/home/shade/trunks/jdk/src/hotspot/share/opto/phaseX.cpp:776), pid=4163558, tid=4163631
      # fatal error: Dead loop detected, node references itself: CastPP (1606)

      Current CompileTask:
      C2:5226 2133 !b 4 com.sun.beans.introspect.MethodInfo::get (273 bytes)

      Stack: [0x00007de48b5f9000,0x00007de48b6f9000], sp=0x00007de48b6f3e30, free space=1003k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x18c77b2] PhaseGVN::dead_loop_check(Node*) [clone .part.0]+0x222 (phaseX.cpp:776)
      V [libjvm.so+0x18d782a] PhaseIterGVN::transform_old(Node*)+0x7a (phaseX.cpp:767)
      V [libjvm.so+0x18dbf06] PhaseIterGVN::optimize()+0xb6 (phaseX.cpp:1064)
      V [libjvm.so+0xc00f30] Compile::inline_incrementally_cleanup(PhaseIterGVN&)+0x2b0 (compile.cpp:2167)
      V [libjvm.so+0xc01976] Compile::inline_incrementally(PhaseIterGVN&)+0x3f6 (compile.cpp:2217)
      V [libjvm.so+0xc04456] Compile::Optimize()+0x486 (compile.cpp:2344)
      V [libjvm.so+0xc07e23] Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x2003 (compile.cpp:862)
      V [libjvm.so+0xa2eb31] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x471 (c2compiler.cpp:147)
      V [libjvm.so+0xc17b3a] CompileBroker::invoke_compiler_on_method(CompileTask*)+0xbea (compileBroker.cpp:2345)
      V [libjvm.so+0xc18b60] CompileBroker::compiler_thread_loop()+0x520 (compileBroker.cpp:1989)
      V [libjvm.so+0x117878f] JavaThread::thread_main_inner()+0x12f (javaThread.cpp:776)
      V [libjvm.so+0x1db55aa] Thread::call_run()+0xba (thread.cpp:242)
      V [libjvm.so+0x1846f38] thread_native_entry(Thread*)+0x118 (os_linux.cpp:860)
      C [libc.so.6+0x9caa4]
      Registers:

            Assignee:
            Aleksey Shipilev
            Reporter:
            Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: