JDK-8325539 : [lworld] TestNullableInlineTypes::test102_verifier hits "Inline type allocations should not have safepoint uses"
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: repo-valhalla
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2024-02-09
  • Updated: 2024-02-09
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
TestNullableInlineTypes fails after the test migration (JDK-8324949) with '-Xcomp -XX:-TieredCompilation -DIgnoreCompilerControls=true':

# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/workspace/open/src/hotspot/share/opto/macro.cpp:963), pid=2652474, tid=2652490
#  assert(safepoints.length() == 0 || !res_type->is_inlinetypeptr()) failed: Inline type allocations should not have safepoint uses

Current CompileTask:
C2:28934 4762    b        compiler.valhalla.inlinetypes.TestNullableInlineTypes::test102_verifier (25 bytes)

Stack: [0x00007f8da8206000,0x00007f8da8306000],  sp=0x00007f8da8301260,  free space=1004k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x1326f93]  PhaseMacroExpand::scalar_replacement(AllocateNode*, GrowableArray<SafePointNode*>&)+0x833  (macro.cpp:963)
V  [libjvm.so+0x13272e2]  PhaseMacroExpand::eliminate_allocate_node(AllocateNode*) [clone .part.0]+0x252  (macro.cpp:1223)
V  [libjvm.so+0x1327a25]  PhaseMacroExpand::eliminate_macro_nodes()+0x2d5  (node.hpp:403)
V  [libjvm.so+0xa363a6]  Compile::Optimize()+0x14d6  (compile.cpp:2839)
V  [libjvm.so+0xa396c1]  Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x1b81  (compile.cpp:869)
V  [libjvm.so+0x873667]  C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x207  (c2compiler.cpp:134)
V  [libjvm.so+0xa451a0]  CompileBroker::invoke_compiler_on_method(CompileTask*)+0x980  (compileBroker.cpp:2292)
V  [libjvm.so+0xa45ed8]  CompileBroker::compiler_thread_loop()+0x4a8  (compileBroker.cpp:1951)
V  [libjvm.so+0xf09d5c]  JavaThread::thread_main_inner()+0xcc  (javaThread.cpp:721)
V  [libjvm.so+0x180d1da]  Thread::call_run()+0xba  (thread.cpp:220)
V  [libjvm.so+0x14fdfda]  thread_native_entry(Thread*)+0x12a  (os_linux.cpp:787)