JDK-8373244 : Release Note: JEP 516: Ahead-of-Time Object Caching with Any GC
  • Type: Sub-task
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 26
  • Priority: P4
  • Status: New
  • Resolution: Unresolved
  • Submitted: 2025-12-08
  • Updated: 2025-12-08
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 26
26Unresolved
Description
Enhance the ahead-of-time cache, which enables the HotSpot Java Virtual Machine to improve startup and warmup time, so that it can be used with any garbage collector, including the low-latency Z Garbage Collector (ZGC).

Prior to [JEP 516](https://openjdk.org/jeps/516), some of the AOT optimizations of the AOT cache introduced by [JEP 483: Ahead-of-Time Class Loading & Linking](https://openjdk.org/jeps/483) did not work when using ZGC because the state of objects could not be cached due to mapping the object state bit by bit from a file into the heap, which requires a common object format. The advanced memory layout of ZGC was incompatible with the simpler object format used by other GC implementations.

JEP 516 introduces a new way of loading objects in the background, instead of directly mapping memory from a file, which is compatible with all GC implementations. Hence, the full range of optimizations of the AOT cache is now available across all GC implementations, including ZGC.