[lworld] Assert in Node::depends_only_on_test_impl due to CastI2N

XMLWordPrintable

      After JDK-8347365 got merged in, compiler/valhalla/inlinetypes/TestGenerated.java fails with -XX:+UnlockDiagnosticVMOptions -XX:ForceNonTearable=*

      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (workspace/open/src/hotspot/share/opto/node.hpp:1207), pid=2807496, tid=2807514
      # assert(false) failed: CastI2N
      #
      # JRE version: Java(TM) SE Runtime Environment (27.0) (fastdebug build 27-jep401ea2-2026-02-26-1028387.tobias.hartmann.valhallatesting)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 27-jep401ea2-2026-02-26-1028387.tobias.hartmann.valhallatesting, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0x50515e] Node::depends_only_on_test_impl() const+0x1e

      Current CompileTask:
      C2:1368 346 b 4 compiler.valhalla.inlinetypes.TestGenerated::test2 (43 bytes)

      Stack: [0x00007f3cbce4d000,0x00007f3cbcf4d000], sp=0x00007f3cbcf479e0, free space=1002k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x50515e] Node::depends_only_on_test_impl() const+0x1e (node.hpp:1207)
      V [libjvm.so+0x16cf6c8] PhaseIdealLoop::try_sink_out_of_loop(Node*)+0x3f8 (loopopts.cpp:1934)
      V [libjvm.so+0x16d007e] PhaseIdealLoop::split_if_with_blocks_post(Node*) [clone .part.0]+0x7e (loopopts.cpp:1719)
      V [libjvm.so+0x16d117d] PhaseIdealLoop::split_if_with_blocks(VectorSet&, Node_Stack&)+0xbd (loopopts.cpp:1578)
      V [libjvm.so+0x16c1a76] PhaseIdealLoop::build_and_optimize()+0x12c6 (loopnode.cpp:5273)
      V [libjvm.so+0xc2e776] PhaseIdealLoop::optimize(PhaseIterGVN&, LoopOptsMode)+0x4e6 (loopnode.hpp:1228)
      V [libjvm.so+0xc252a1] Compile::optimize_loops(PhaseIterGVN&, LoopOptsMode)+0xb1 (compile.cpp:2857)
      V [libjvm.so+0xc28b44] Compile::Optimize()+0x1534 (compile.cpp:3140)
      V [libjvm.so+0xc2b36d] Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x1d8d (compile.cpp:886)
      V [libjvm.so+0xa16b48] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x4b8 (c2compiler.cpp:150)
      V [libjvm.so+0xc3b0cf] CompileBroker::invoke_compiler_on_method(CompileTask*)+0xbcf (compileBroker.cpp:2345)
      V [libjvm.so+0xc3c310] CompileBroker::compiler_thread_loop()+0x530 (compileBroker.cpp:1989)
      V [libjvm.so+0x1215aab] JavaThread::thread_main_inner()+0x13b (javaThread.cpp:773)
      V [libjvm.so+0x1d04856] Thread::call_run()+0xb6 (thread.cpp:243)
      V [libjvm.so+0x1917db8] thread_native_entry(Thread*)+0x118 (os_linux.cpp:929)

            Assignee:
            Tobias Hartmann
            Reporter:
            Tobias Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: