Running 'open/test/hotspot/jtreg/compiler/valhalla/inlinetypes/TestArrays.java' with '-XX:+UseNullableValueFlattening -XX:+UseAtomicValueFlattening -XX:+UseNonAtomicValueFlattening' fails even after JDK-8355397:
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/oracle/valhalla/open/src/hotspot/share/opto/parse2.cpp:87), pid=1020757, tid=1020773
# assert(UseArrayFlattening && is_reference_type(bt) && element_ptr->can_be_inline_type() && (!element_ptr->is_inlinetypeptr() || element_ptr->inline_klass()->maybe_flat_in_array())) failed: array can't be flat
#
# JRE version: Java(TM) SE Runtime Environment (25.0) (fastdebug build 25-lworld5ea-LTS-2025-05-16-1325555.tobias...)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 25-lworld5ea-LTS-2025-05-16-1325555.tobias..., mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0x17a4f3c] Parse::array_load(BasicType)+0x89c
Current CompileTask:
C2:11760 1683 b 4 compiler.valhalla.inlinetypes.TestArrays::test151 (6 bytes)
Stack: [0x000079cbffe00000,0x000079cbfff00000], sp=0x000079cbffefc3f0, free space=1008k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x17a4f3c] Parse::array_load(BasicType)+0x89c (parse2.cpp:87)
V [libjvm.so+0x17b60e2] Parse::do_one_bytecode()+0x2b42 (parse2.cpp:2978)
V [libjvm.so+0x179b9dd] Parse::do_one_block()+0x35d (parse1.cpp:1671)
V [libjvm.so+0x179cc45] Parse::do_all_blocks()+0x135 (parse1.cpp:765)
V [libjvm.so+0x17a0551] Parse::Parse(JVMState*, ciMethod*, float)+0xec1 (parse1.cpp:669)
V [libjvm.so+0x953a35] ParseGenerator::generate(JVMState*)+0x135 (callGenerator.cpp:98)
V [libjvm.so+0xb2b7b6] Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x18b6 (compile.cpp:819)
V [libjvm.so+0x9505dd] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x46d (c2compiler.cpp:142)
V [libjvm.so+0xb3ac52] CompileBroker::invoke_compiler_on_method(CompileTask*)+0xb22 (compileBroker.cpp:2307)
V [libjvm.so+0xb3bc58] CompileBroker::compiler_thread_loop()+0x588 (compileBroker.cpp:1951)
V [libjvm.so+0x1095c9f] JavaThread::thread_main_inner()+0x12f (javaThread.cpp:773)
V [libjvm.so+0x1acb506] Thread::call_run()+0xb6 (thread.cpp:231)
V [libjvm.so+0x174c5a8] thread_native_entry(Thread*)+0x128 (os_linux.cpp:877)
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/oracle/valhalla/open/src/hotspot/share/opto/parse2.cpp:87), pid=1020757, tid=1020773
# assert(UseArrayFlattening && is_reference_type(bt) && element_ptr->can_be_inline_type() && (!element_ptr->is_inlinetypeptr() || element_ptr->inline_klass()->maybe_flat_in_array())) failed: array can't be flat
#
# JRE version: Java(TM) SE Runtime Environment (25.0) (fastdebug build 25-lworld5ea-LTS-2025-05-16-1325555.tobias...)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 25-lworld5ea-LTS-2025-05-16-1325555.tobias..., mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0x17a4f3c] Parse::array_load(BasicType)+0x89c
Current CompileTask:
C2:11760 1683 b 4 compiler.valhalla.inlinetypes.TestArrays::test151 (6 bytes)
Stack: [0x000079cbffe00000,0x000079cbfff00000], sp=0x000079cbffefc3f0, free space=1008k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x17a4f3c] Parse::array_load(BasicType)+0x89c (parse2.cpp:87)
V [libjvm.so+0x17b60e2] Parse::do_one_bytecode()+0x2b42 (parse2.cpp:2978)
V [libjvm.so+0x179b9dd] Parse::do_one_block()+0x35d (parse1.cpp:1671)
V [libjvm.so+0x179cc45] Parse::do_all_blocks()+0x135 (parse1.cpp:765)
V [libjvm.so+0x17a0551] Parse::Parse(JVMState*, ciMethod*, float)+0xec1 (parse1.cpp:669)
V [libjvm.so+0x953a35] ParseGenerator::generate(JVMState*)+0x135 (callGenerator.cpp:98)
V [libjvm.so+0xb2b7b6] Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x18b6 (compile.cpp:819)
V [libjvm.so+0x9505dd] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x46d (c2compiler.cpp:142)
V [libjvm.so+0xb3ac52] CompileBroker::invoke_compiler_on_method(CompileTask*)+0xb22 (compileBroker.cpp:2307)
V [libjvm.so+0xb3bc58] CompileBroker::compiler_thread_loop()+0x588 (compileBroker.cpp:1951)
V [libjvm.so+0x1095c9f] JavaThread::thread_main_inner()+0x12f (javaThread.cpp:773)
V [libjvm.so+0x1acb506] Thread::call_run()+0xb6 (thread.cpp:231)
V [libjvm.so+0x174c5a8] thread_native_entry(Thread*)+0x128 (os_linux.cpp:877)
- relates to
-
JDK-8355397 [lworld] Parse::array_load fails with "array can't be flat" assert
-
- Resolved
-