Description
jtreg fails (both x86 and aarch64 build) on test gc/TestFullGCALot.java with "-XX:-UseCompressedOops" option
The issue can be reproduced on HelloWorld test:
$ openjdk/j10_x86/build/linux-x86_64-normal-server-fastdebug/jdk/bin/java -XX:-UseCompressedOops -XX:+FullGCALot HelloWorld
# To suppress the following error report, specify this argument
# after -XX: or in .hotspotrc: SuppressErrorAt=/metaspaceCounters.cpp:92
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/home/boris/ws/openjdk/j10_x86/hotspot/src/share/vm/memory/metaspaceCounters.cpp:92), pid=10226, tid=10227
# assert(_perf_counters != __null) failed: Should be initialized
#
# JRE version: (10.0) (fastdebug build )
# Java VM: OpenJDK 64-Bit Server VM (fastdebug 10-internal+0-adhoc.boris.j10x86, mixed mode, tiered, g1 gc, linux-amd64)
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %P" (or dumping to /home/boris/ws/tmp/core.10226)
#
# An error report file with more information is saved as:
# /home/boris/ws/tmp/hs_err_pid10226.log
#
# If you would like to submit a bug report, please visit:sr
# http://bugreport.java.com/bugreport/crash.jsp
#
Current thread is 10227
Dumping core ...
Aborted (core dumped)
On source level the issue is in allocation before counters initialization:
init_globals(init.cpp:122)->universe2_init->Universe::genesis()->new_objArray->...->update_performance_counters
init_globals(init.cpp:139)->universe_post_init->initialize_performance_counters
Here is call stacks:
MetaspaceCounters::update_performance_counters
G1MonitoringSupport::update_sizes
G1CollectedHeap::humongous_obj_allocate
G1CollectedHeap::attempt_allocation_humongous
G1CollectedHeap::mem_allocate
CollectedHeap::common_mem_allocate_noinit
CollectedHeap::common_mem_allocate_init
CollectedHeap::array_allocate
InstanceKlass::allocate_objArray
oopFactory::new_objArray
Universe::genesis
universe2_init
>init_globals(init.cpp:122)
Threads::create_vm
JNI_CreateJavaVM_inner
JNI_CreateJavaVM
InitializeJVM
JavaMain
MetaspaceCounters::initialize_performance_counters
universe_post_init
>init_globals(init.cpp:139)
Threads::create_vm
JNI_CreateJavaVM_inner
JNI_CreateJavaVM
InitializeJVM
JavaMain
The issue can be reproduced on HelloWorld test:
$ openjdk/j10_x86/build/linux-x86_64-normal-server-fastdebug/jdk/bin/java -XX:-UseCompressedOops -XX:+FullGCALot HelloWorld
# To suppress the following error report, specify this argument
# after -XX: or in .hotspotrc: SuppressErrorAt=/metaspaceCounters.cpp:92
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/home/boris/ws/openjdk/j10_x86/hotspot/src/share/vm/memory/metaspaceCounters.cpp:92), pid=10226, tid=10227
# assert(_perf_counters != __null) failed: Should be initialized
#
# JRE version: (10.0) (fastdebug build )
# Java VM: OpenJDK 64-Bit Server VM (fastdebug 10-internal+0-adhoc.boris.j10x86, mixed mode, tiered, g1 gc, linux-amd64)
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %P" (or dumping to /home/boris/ws/tmp/core.10226)
#
# An error report file with more information is saved as:
# /home/boris/ws/tmp/hs_err_pid10226.log
#
# If you would like to submit a bug report, please visit:sr
# http://bugreport.java.com/bugreport/crash.jsp
#
Current thread is 10227
Dumping core ...
Aborted (core dumped)
On source level the issue is in allocation before counters initialization:
init_globals(init.cpp:122)->universe2_init->Universe::genesis()->new_objArray->...->update_performance_counters
init_globals(init.cpp:139)->universe_post_init->initialize_performance_counters
Here is call stacks:
MetaspaceCounters::update_performance_counters
G1MonitoringSupport::update_sizes
G1CollectedHeap::humongous_obj_allocate
G1CollectedHeap::attempt_allocation_humongous
G1CollectedHeap::mem_allocate
CollectedHeap::common_mem_allocate_noinit
CollectedHeap::common_mem_allocate_init
CollectedHeap::array_allocate
InstanceKlass::allocate_objArray
oopFactory::new_objArray
Universe::genesis
universe2_init
>init_globals(init.cpp:122)
Threads::create_vm
JNI_CreateJavaVM_inner
JNI_CreateJavaVM
InitializeJVM
JavaMain
MetaspaceCounters::initialize_performance_counters
universe_post_init
>init_globals(init.cpp:139)
Threads::create_vm
JNI_CreateJavaVM_inner
JNI_CreateJavaVM
InitializeJVM
JavaMain
Attachments
Issue Links
- relates to
-
JDK-8183973 gc/TestFullGCALot.java fails in JDK10-hs nightly
-
- Resolved
-