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

[lworld] C2 compilation fails with "not enough operands for reexecution"

XMLWordPrintable

      (Probably old issue but happens only at tier6 which is not part of the CI)

      Various tests (for example, java/util/stream/test/org/openjdk/tests/java/util/SplittableRandomTest.java) fail when run with "-Xcomp -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -server -XX:+TieredCompilation":

      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/workspace/open/src/hotspot/share/opto/graphKit.cpp:942), pid=463602, tid=463618
      # assert(out_jvms->sp() >= (uint)inputs) failed: not enough operands for reexecution
      #
      # JRE version: Java(TM) SE Runtime Environment (24.0) (fastdebug build 24-lworld5ea-2025-01-30-0818036.tobias.hartmann.valhalla)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 24-lworld5ea-2025-01-30-0818036.tobias.hartmann.valhalla, compiled mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0xe5af3a] GraphKit::add_safepoint_edges(SafePointNode*, bool)+0x1b9a

      Current CompileTask:
      C2:42093 11946 !b 4 org.testng.internal.TestResult::setParameters (91 bytes)

      Stack: [0x00007fda18097000,0x00007fda18197000], sp=0x00007fda181934f0, free space=1009k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0xe5af3a] GraphKit::add_safepoint_edges(SafePointNode*, bool)+0x1b9a (graphKit.cpp:942)
      V [libjvm.so+0xe608e4] GraphKit::make_runtime_call(int, TypeFunc const*, unsigned char*, char const*, TypePtr const*, Node*, Node*, Node*, Node*, Node*, Node*, Node*, Node*)+0x5c4 (graphKit.cpp:2750)
      V [libjvm.so+0xc255c2] Parse::catch_inline_exceptions(SafePointNode*)+0x7b2 (doCall.cpp:1104)
      V [libjvm.so+0x162cd22] Parse::do_exceptions()+0xe2 (parse1.cpp:1014)
      V [libjvm.so+0x16357c7] Parse::do_one_block()+0x247 (parse1.cpp:1670)
      V [libjvm.so+0x1636c46] Parse::do_all_blocks()+0x136 (parse1.cpp:754)
      V [libjvm.so+0x163a982] Parse::Parse(JVMState*, ciMethod*, float)+0xe52 (parse1.cpp:658)
      V [libjvm.so+0x8cdc43] ParseGenerator::generate(JVMState*)+0x183 (callGenerator.cpp:100)
      V [libjvm.so+0xa9651d] Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x170d (compile.cpp:811)
      V [libjvm.so+0x8cb1f2] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x1f2 (c2compiler.cpp:143)
      V [libjvm.so+0xaa2ac8] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x928 (compileBroker.cpp:2319)
      V [libjvm.so+0xaa3808] CompileBroker::compiler_thread_loop()+0x528 (compileBroker.cpp:1977)
      V [libjvm.so+0xfa73ec] JavaThread::thread_main_inner()+0xcc (javaThread.cpp:759)
      V [libjvm.so+0x192ee06] Thread::call_run()+0xb6 (thread.cpp:232)
      V [libjvm.so+0x15e8bd8] thread_native_entry(Thread*)+0x128 (os_linux.cpp:858)

            qamai Quan Anh Mai
            thartmann Tobias Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: