-
Bug
-
Resolution: Fixed
-
P2
-
repo-valhalla
A large number of compiler tests fail with '-XX:-UseCompressedOops -XX:-UseCompressedClassPointers' (also with '-Xint'), for example:
test/hotspot/jtreg/compiler/valhalla/inlinetypes/TestGenerated.java
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/oracle/valhalla/open/src/hotspot/share/gc/shared/memAllocator.cpp:433), pid=697761, tid=697780
# assert(elements_end <= obj_end) failed: payload must fit in object
#
# JRE version: Java(TM) SE Runtime Environment (23.0) (fastdebug build 23-lworld5ea-2024-08-12-1305131.tobias...)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 23-lworld5ea-2024-08-12-1305131.tobias..., interpreted mode, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0x1424c85] ObjArrayAllocator::mem_zap_end_padding(HeapWordImpl**) const+0x2f5
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E" (or dumping to /oracle/valhalla/open/JTwork/scratch/core.697761)
#
# If you would like to submit a bug report, please visit:
# https://bugreport.java.com/bugreport/crash.jsp
#
--------------- S U M M A R Y ------------
Command Line: -Dtest.vm.opts=-XX:-UseCompressedOops -XX:-UseCompressedClassPointers -Xint -Dtest.tool.vm.opts=-J-XX:-UseCompressedOops -J-XX:-UseCompressedClassPointers -J-Xint -Dtest.compiler.opts= -Dtest.java.opts= -Dtest.jdk=/oracle/valhalla/build/fastdebug/jdk -Dcompile.jdk=/oracle/valhalla/build/fastdebug/jdk -Dtest.timeout.factor=10.0 -Dtest.root=/oracle/valhalla/open/test/hotspot/jtreg -Dtest.name=compiler/valhalla/inlinetypes/TestGenerated.java -Dtest.file=/oracle/valhalla/open/test/hotspot/jtreg/compiler/valhalla/inlinetypes/TestGenerated.java -Dtest.src=/oracle/valhalla/open/test/hotspot/jtreg/compiler/valhalla/inlinetypes -Dtest.src.path=/oracle/valhalla/open/test/hotspot/jtreg/compiler/valhalla/inlinetypes -Dtest.classes=/oracle/valhalla/open/JTwork/classes/compiler/valhalla/inlinetypes/TestGenerated.d -Dtest.class.path=/oracle/valhalla/open/JTwork/classes/compiler/valhalla/inlinetypes/TestGenerated.d -Dtest.modules=java.base/jdk.internal.value java.base/jdk.internal.vm.annotation -Dtest.enable.preview=true --add-modules=java.base --add-exports=java.base/jdk.internal.value=ALL-UNNAMED --add-exports=java.base/jdk.internal.vm.annotation=ALL-UNNAMED -XX:-UseCompressedOops -XX:-UseCompressedClassPointers -Xint -Xbatch --enable-preview com.sun.javatest.regtest.agent.MainWrapper /oracle/valhalla/open/JTwork/compiler/valhalla/inlinetypes/TestGenerated.d/main.0.jta
Host: prometheus, 12th Gen Intel(R) Core(TM) i7-12800H, 20 cores, 31G, Ubuntu 24.04 LTS
Time: Tue Aug 13 08:17:40 2024 CEST elapsed time: 0.264672 seconds (0d 0h 0m 0s)
--------------- T H R E A D ---------------
Current thread (0x00007938b0597e00): JavaThread "MainThread" [_thread_in_vm, id=697780, stack(0x00007936aa000000,0x00007936aa100000) (1024K)]
Stack: [0x00007936aa000000,0x00007936aa100000], sp=0x00007936aa0fe210, free space=1016k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x1424c85] ObjArrayAllocator::mem_zap_end_padding(HeapWordImpl**) const+0x2f5 (memAllocator.cpp:433)
V [libjvm.so+0x1424fa6] ObjArrayAllocator::initialize(HeapWordImpl**) const+0x1b6 (memAllocator.cpp:417)
V [libjvm.so+0x14260b7] MemAllocator::allocate() const+0x117 (memAllocator.cpp:371)
V [libjvm.so+0xc4eebe] FlatArrayKlass::allocate(int, JavaThread*)+0xfe (collectedHeap.inline.hpp:46)
V [libjvm.so+0x1543b41] oopFactory::new_valueArray(Klass*, int, JavaThread*)+0x101 (oopFactory.cpp:138)
V [libjvm.so+0x1085ccd] JVM_NewNullRestrictedArray+0x15d (jvm.cpp:442)
j jdk.internal.value.ValueClass.newNullRestrictedArray(Ljava/lang/Class;I)[Ljava/lang/Object;+0 java.base
j compiler.valhalla.inlinetypes.TestGenerated.main([Ljava/lang/String;)V+11
j java.lang.invoke.LambdaForm$DMH+0x0000793688706c20.invokeStatic(Ljava/lang/Object;Ljava/lang/Object;)V+10 java.base
j java.lang.invoke.LambdaForm$MH+0x000079368890dc50.invoke(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;+33 java.base
j java.lang.invoke.LambdaForm$MH+0x000079368890e448.invokeExact_MT(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;+20 java.base
j jdk.internal.reflect.DirectMethodHandleAccessor.invokeImpl(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+55 java.base
j jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+23 java.base
j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+102 java.base
j com.sun.javatest.regtest.agent.MainWrapper$MainTask.run()V+134
j java.lang.Thread.runWith(Ljava/lang/Object;Ljava/lang/Runnable;)V+5 java.base
test/hotspot/jtreg/compiler/valhalla/inlinetypes/TestGenerated.java
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/oracle/valhalla/open/src/hotspot/share/gc/shared/memAllocator.cpp:433), pid=697761, tid=697780
# assert(elements_end <= obj_end) failed: payload must fit in object
#
# JRE version: Java(TM) SE Runtime Environment (23.0) (fastdebug build 23-lworld5ea-2024-08-12-1305131.tobias...)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 23-lworld5ea-2024-08-12-1305131.tobias..., interpreted mode, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0x1424c85] ObjArrayAllocator::mem_zap_end_padding(HeapWordImpl**) const+0x2f5
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E" (or dumping to /oracle/valhalla/open/JTwork/scratch/core.697761)
#
# If you would like to submit a bug report, please visit:
# https://bugreport.java.com/bugreport/crash.jsp
#
--------------- S U M M A R Y ------------
Command Line: -Dtest.vm.opts=-XX:-UseCompressedOops -XX:-UseCompressedClassPointers -Xint -Dtest.tool.vm.opts=-J-XX:-UseCompressedOops -J-XX:-UseCompressedClassPointers -J-Xint -Dtest.compiler.opts= -Dtest.java.opts= -Dtest.jdk=/oracle/valhalla/build/fastdebug/jdk -Dcompile.jdk=/oracle/valhalla/build/fastdebug/jdk -Dtest.timeout.factor=10.0 -Dtest.root=/oracle/valhalla/open/test/hotspot/jtreg -Dtest.name=compiler/valhalla/inlinetypes/TestGenerated.java -Dtest.file=/oracle/valhalla/open/test/hotspot/jtreg/compiler/valhalla/inlinetypes/TestGenerated.java -Dtest.src=/oracle/valhalla/open/test/hotspot/jtreg/compiler/valhalla/inlinetypes -Dtest.src.path=/oracle/valhalla/open/test/hotspot/jtreg/compiler/valhalla/inlinetypes -Dtest.classes=/oracle/valhalla/open/JTwork/classes/compiler/valhalla/inlinetypes/TestGenerated.d -Dtest.class.path=/oracle/valhalla/open/JTwork/classes/compiler/valhalla/inlinetypes/TestGenerated.d -Dtest.modules=java.base/jdk.internal.value java.base/jdk.internal.vm.annotation -Dtest.enable.preview=true --add-modules=java.base --add-exports=java.base/jdk.internal.value=ALL-UNNAMED --add-exports=java.base/jdk.internal.vm.annotation=ALL-UNNAMED -XX:-UseCompressedOops -XX:-UseCompressedClassPointers -Xint -Xbatch --enable-preview com.sun.javatest.regtest.agent.MainWrapper /oracle/valhalla/open/JTwork/compiler/valhalla/inlinetypes/TestGenerated.d/main.0.jta
Host: prometheus, 12th Gen Intel(R) Core(TM) i7-12800H, 20 cores, 31G, Ubuntu 24.04 LTS
Time: Tue Aug 13 08:17:40 2024 CEST elapsed time: 0.264672 seconds (0d 0h 0m 0s)
--------------- T H R E A D ---------------
Current thread (0x00007938b0597e00): JavaThread "MainThread" [_thread_in_vm, id=697780, stack(0x00007936aa000000,0x00007936aa100000) (1024K)]
Stack: [0x00007936aa000000,0x00007936aa100000], sp=0x00007936aa0fe210, free space=1016k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x1424c85] ObjArrayAllocator::mem_zap_end_padding(HeapWordImpl**) const+0x2f5 (memAllocator.cpp:433)
V [libjvm.so+0x1424fa6] ObjArrayAllocator::initialize(HeapWordImpl**) const+0x1b6 (memAllocator.cpp:417)
V [libjvm.so+0x14260b7] MemAllocator::allocate() const+0x117 (memAllocator.cpp:371)
V [libjvm.so+0xc4eebe] FlatArrayKlass::allocate(int, JavaThread*)+0xfe (collectedHeap.inline.hpp:46)
V [libjvm.so+0x1543b41] oopFactory::new_valueArray(Klass*, int, JavaThread*)+0x101 (oopFactory.cpp:138)
V [libjvm.so+0x1085ccd] JVM_NewNullRestrictedArray+0x15d (jvm.cpp:442)
j jdk.internal.value.ValueClass.newNullRestrictedArray(Ljava/lang/Class;I)[Ljava/lang/Object;+0 java.base
j compiler.valhalla.inlinetypes.TestGenerated.main([Ljava/lang/String;)V+11
j java.lang.invoke.LambdaForm$DMH+0x0000793688706c20.invokeStatic(Ljava/lang/Object;Ljava/lang/Object;)V+10 java.base
j java.lang.invoke.LambdaForm$MH+0x000079368890dc50.invoke(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;+33 java.base
j java.lang.invoke.LambdaForm$MH+0x000079368890e448.invokeExact_MT(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;+20 java.base
j jdk.internal.reflect.DirectMethodHandleAccessor.invokeImpl(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+55 java.base
j jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+23 java.base
j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+102 java.base
j com.sun.javatest.regtest.agent.MainWrapper$MainTask.run()V+134
j java.lang.Thread.runWith(Ljava/lang/Object;Ljava/lang/Runnable;)V+5 java.base
- links to
-
Commit(lworld) openjdk/valhalla/884078f0
-
Review(lworld) openjdk/valhalla/1217