JDK-8349068 : [lworld] C2 compilation fails with "not enough operands for reexecution"
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: repo-valhalla
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2025-01-30
  • Updated: 2025-02-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
repo-valhallaUnresolved
Related Reports
Relates :  
Description
(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)
Comments
Should we close this as a duplicate of 8350208?
18-02-2025

A pull request was submitted for review. Branch: lworld URL: https://git.openjdk.org/valhalla/pull/1363 Date: 2025-02-12 16:31:02 +0000
12-02-2025

Could be related to JDK-8325632.
30-01-2025