RFR: 8373411: Crash when PrintSharedArchiveAndExit is enabled but shared heap is disabled

Stefan Karlsson stefank at openjdk.org
Wed Dec 10 10:39:39 UTC 2025


On Wed, 10 Dec 2025 10:33:04 GMT, Stefan Karlsson <stefank at openjdk.org> wrote:

> Found this while poking around at Valhalla that turned off heap sharing. The fix is simple, there's a missing HeapShared::is_loading() check that we missed when refactoring the object streaming code.

This is the assert that you get when hitting this issue:

#  assert(_heap_load_mode != HeapArchiveMode::_uninitialized) failed: not initialized yet

-------------

PR Comment: https://git.openjdk.org/jdk/pull/28741#issuecomment-3636419073


More information about the hotspot-runtime-dev mailing list