JDK-8373411 : Crash when PrintSharedArchiveAndExit is enabled but shared heap is disabled
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 26
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2025-12-10
  • Updated: 2025-12-12
  • Resolved: 2025-12-12
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 27
27 masterFixed
Related Reports
Causes :  
Description
Found this while poking around at Valhalla that turned off heap sharing. The fix is simple, there's a missing HeapShared::is_loading() check.
Comments
Changeset: d854a042 Branch: master Author: Stefan Karlsson <stefank@openjdk.org> Date: 2025-12-12 14:02:50 +0000 URL: https://git.openjdk.org/jdk/commit/d854a04231a437a6af36ae65780961f40f336343
12-12-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/28741 Date: 2025-12-10 10:33:04 +0000
10-12-2025