RFR: 8373411: Crash when PrintSharedArchiveAndExit is enabled but shared heap is disabled
Aleksey Shipilev
shade at openjdk.org
Thu Dec 11 07:25:28 UTC 2025
On Thu, 11 Dec 2025 07:17:48 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:
> Hold on, how does it crash?
Oh, so it fails the assert in the mode checker:
inline bool HeapShared::is_loading_mapping_mode() {
assert(_heap_load_mode != HeapArchiveMode::_uninitialized, "not initialized yet"); // <---
return _heap_load_mode == HeapArchiveMode::_mapping;
}
All right. The assert in `StringTable::shared_entry_count()` needs fixing as well then.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/28741#issuecomment-3640594738
More information about the hotspot-runtime-dev
mailing list