-
Bug
-
Resolution: Unresolved
-
P4
-
repo-valhalla
Scenario #2 in compiler/valhalla/inlinetypes/TestBasicFunctionality.java fails with -XX:+DeoptimizeALot:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/opt/mach5/mesos/work_dir/slaves/03ecc23a-edd5-4bb5-a333-4ff8ea07fd7c-S1938/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/468fa3d5-16eb-47d9-8b8e-cee18e1859e2/runs/0fa44184-45c6-44b5-9229-3fb0dcd61a1b/workspace/open/src/hotspot/share/opto/node.hpp:1015), pid=294474, tid=294492
# assert(is_InlineType()) failed: invalid node class: Con
#
# JRE version: Java(TM) SE Runtime Environment (25.0+1) (fastdebug build 25-valhalla+1-LTS-8)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 25-valhalla+1-LTS-8, mixed mode, sharing, tiered, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0xf1529e] Node::as_InlineType() const [clone .part.0]+0xe
............
Command Line: -Djava.library.path=. -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -DScenarios=2 -XX:+UnlockDiagnosticVMOptions -XX:+DeoptimizeALot -Dir.framework.server.port=38881 --enable-preview --add-exports=java.base/jdk.internal.value=ALL-UNNAMED --add-exports=java.base/jdk.internal.vm.annotation=ALL-UNNAMED --add-exports=java.base/jdk.internal.misc=ALL-UNNAMED -XX:+IgnoreUnrecognizedVMOptions -XX:-UseACmpProfile -XX:-UseCompressedOops -XX:FlatArrayElementMaxOops=0 -XX:FlatArrayElementMaxSize=0 -XX:-UseArrayLoadStoreProfile -XX:InlineFieldMaxFlatSize=-1 -XX:+InlineTypePassFieldsAsArgs -XX:+InlineTypeReturnedAsFields -XX:+StressInlineTypeReturnedAsFields -XX:-BackgroundCompilation -XX:CompileCommand=quiet -DWarmup=251 compiler.lib.ir_framework.test.TestVM compiler.valhalla.inlinetypes.TestBasicFunctionality compiler.valhalla.inlinetypes.MyValue3 compiler.valhalla.inlinetypes.MyValue2 compiler.valhalla.inlinetypes.MyValue1 compiler.valhalla.inlinetypes.MyValue2Inline compiler.valhalla.inlinetypes.MyValue3Inline
...........
C2:3120 1472 b 4 compiler.valhalla.inlinetypes.TestBasicFunctionality::test12 (133 bytes)
Stack: [0x0000762fbf100000,0x0000762fbf200000], sp=0x0000762fbf1fadb0, free space=1003k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0xf1529e] Node::as_InlineType() const [clone .part.0]+0xe (node.hpp:1015)
V [libjvm.so+0xf185cc] InlineTypeNode::add_fields_to_safepoint(Unique_Node_List&, Node_List&, SafePointNode*)+0x14c
V [libjvm.so+0xf184df] InlineTypeNode::add_fields_to_safepoint(Unique_Node_List&, Node_List&, SafePointNode*)+0x5f
V [libjvm.so+0xf1ad1c] InlineTypeNode::make_scalar_in_safepoint(PhaseIterGVN*, Unique_Node_List&, SafePointNode*)+0x1ac
V [libjvm.so+0xf1b899] InlineTypeNode::make_scalar_in_safepoints(PhaseIterGVN*, bool)+0x699
V [libjvm.so+0x8e72b5] SafePointNode::Ideal(PhaseGVN*, bool)+0x155
V [libjvm.so+0x16a056d] PhaseIterGVN::transform_old(Node*)+0xbd
V [libjvm.so+0x1696094] PhaseIterGVN::optimize()+0x94
V [libjvm.so+0xa9b65c] Compile::Optimize()+0x8dc
V [libjvm.so+0xa9f8e5] Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x1c95
V [libjvm.so+0x8d4772] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x1f2
V [libjvm.so+0xaaba08] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x928
V [libjvm.so+0xaac748] CompileBroker::compiler_thread_loop()+0x528
V [libjvm.so+0xfccbae] JavaThread::thread_main_inner()+0xee
V [libjvm.so+0x1953686] Thread::call_run()+0xb6
V [libjvm.so+0x160e378] thread_native_entry(Thread*)+0x128
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/opt/mach5/mesos/work_dir/slaves/03ecc23a-edd5-4bb5-a333-4ff8ea07fd7c-S1938/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/468fa3d5-16eb-47d9-8b8e-cee18e1859e2/runs/0fa44184-45c6-44b5-9229-3fb0dcd61a1b/workspace/open/src/hotspot/share/opto/node.hpp:1015), pid=294474, tid=294492
# assert(is_InlineType()) failed: invalid node class: Con
#
# JRE version: Java(TM) SE Runtime Environment (25.0+1) (fastdebug build 25-valhalla+1-LTS-8)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 25-valhalla+1-LTS-8, mixed mode, sharing, tiered, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0xf1529e] Node::as_InlineType() const [clone .part.0]+0xe
............
Command Line: -Djava.library.path=. -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -DScenarios=2 -XX:+UnlockDiagnosticVMOptions -XX:+DeoptimizeALot -Dir.framework.server.port=38881 --enable-preview --add-exports=java.base/jdk.internal.value=ALL-UNNAMED --add-exports=java.base/jdk.internal.vm.annotation=ALL-UNNAMED --add-exports=java.base/jdk.internal.misc=ALL-UNNAMED -XX:+IgnoreUnrecognizedVMOptions -XX:-UseACmpProfile -XX:-UseCompressedOops -XX:FlatArrayElementMaxOops=0 -XX:FlatArrayElementMaxSize=0 -XX:-UseArrayLoadStoreProfile -XX:InlineFieldMaxFlatSize=-1 -XX:+InlineTypePassFieldsAsArgs -XX:+InlineTypeReturnedAsFields -XX:+StressInlineTypeReturnedAsFields -XX:-BackgroundCompilation -XX:CompileCommand=quiet -DWarmup=251 compiler.lib.ir_framework.test.TestVM compiler.valhalla.inlinetypes.TestBasicFunctionality compiler.valhalla.inlinetypes.MyValue3 compiler.valhalla.inlinetypes.MyValue2 compiler.valhalla.inlinetypes.MyValue1 compiler.valhalla.inlinetypes.MyValue2Inline compiler.valhalla.inlinetypes.MyValue3Inline
...........
C2:3120 1472 b 4 compiler.valhalla.inlinetypes.TestBasicFunctionality::test12 (133 bytes)
Stack: [0x0000762fbf100000,0x0000762fbf200000], sp=0x0000762fbf1fadb0, free space=1003k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0xf1529e] Node::as_InlineType() const [clone .part.0]+0xe (node.hpp:1015)
V [libjvm.so+0xf185cc] InlineTypeNode::add_fields_to_safepoint(Unique_Node_List&, Node_List&, SafePointNode*)+0x14c
V [libjvm.so+0xf184df] InlineTypeNode::add_fields_to_safepoint(Unique_Node_List&, Node_List&, SafePointNode*)+0x5f
V [libjvm.so+0xf1ad1c] InlineTypeNode::make_scalar_in_safepoint(PhaseIterGVN*, Unique_Node_List&, SafePointNode*)+0x1ac
V [libjvm.so+0xf1b899] InlineTypeNode::make_scalar_in_safepoints(PhaseIterGVN*, bool)+0x699
V [libjvm.so+0x8e72b5] SafePointNode::Ideal(PhaseGVN*, bool)+0x155
V [libjvm.so+0x16a056d] PhaseIterGVN::transform_old(Node*)+0xbd
V [libjvm.so+0x1696094] PhaseIterGVN::optimize()+0x94
V [libjvm.so+0xa9b65c] Compile::Optimize()+0x8dc
V [libjvm.so+0xa9f8e5] Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x1c95
V [libjvm.so+0x8d4772] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x1f2
V [libjvm.so+0xaaba08] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x928
V [libjvm.so+0xaac748] CompileBroker::compiler_thread_loop()+0x528
V [libjvm.so+0xfccbae] JavaThread::thread_main_inner()+0xee
V [libjvm.so+0x1953686] Thread::call_run()+0xb6
V [libjvm.so+0x160e378] thread_native_entry(Thread*)+0x128