There are some CDS tests that crash due to the following assertion. A (possibly non-exhaustive) list is as follows:
- runtime/cds/NonBootLoaderClasses.java
- runtime/cds/PrintSharedArchiveAndExit.java
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (src/hotspot/share/cds/heapShared.inline.hpp:47), pid=1624407, tid=1624410
# assert(_heap_load_mode != HeapArchiveMode::_uninitialized) failed: not initialized yet
#
# JRE version: (26.0) (fastdebug build )
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 26-jep401ea2-2025-12-12-1122053.paul.hubner.epListing, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
# Problematic frame:
# V [libjvm.so+0x6381c8] AOTMetaspace::initialize_shared_spaces()+0x388
#
# Core dump will be written. Default location: Core dumps may be processed with "/opt/core.sh %p" (or dumping to testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_runtime/scratch/0/core.1624407)
#
#
- runtime/cds/NonBootLoaderClasses.java
- runtime/cds/PrintSharedArchiveAndExit.java
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (src/hotspot/share/cds/heapShared.inline.hpp:47), pid=1624407, tid=1624410
# assert(_heap_load_mode != HeapArchiveMode::_uninitialized) failed: not initialized yet
#
# JRE version: (26.0) (fastdebug build )
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 26-jep401ea2-2025-12-12-1122053.paul.hubner.epListing, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
# Problematic frame:
# V [libjvm.so+0x6381c8] AOTMetaspace::initialize_shared_spaces()+0x388
#
# Core dump will be written. Default location: Core dumps may be processed with "/opt/core.sh %p" (or dumping to testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_runtime/scratch/0/core.1624407)
#
#