[jdk25u-dev] RFR: 8371944: AOT configuration is corrupted when app closes System.out

Oli Gillespie ogillespie at openjdk.org
Tue Dec 16 15:24:02 UTC 2025


On Tue, 16 Dec 2025 13:40:24 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> Backporting to make AOT more reliable and for 25.0.3-oracle parity.
> 
> The change is not clean, because two major rewrites are not present in jdk25u-dev:
>  - [JDK-8365932](https://bugs.openjdk.org/browse/JDK-8365932): Implementation of JEP 516: Ahead-of-Time Object Caching with Any GC
>  - [JDK-8366475](https://bugs.openjdk.org/browse/JDK-8366475): Rename MetaspaceShared class to AOTMetaspace
> 
> Therefore, I had to reapply some chunks by hand. Please take a careful look against the original changeset.
> 
> Additional testing:
>  - [x] MacOS AArch64 server fastdebug, `runtime/cds` passes

src/hotspot/share/cds/metaspaceShared.cpp line 555:

> 553: 
> 554:   VM_PopulateDumpSharedSpace(StaticArchiveBuilder& b) :
> 555:     VM_Operation(), _heap_info(), _map_info(nullptr), _builder(b) {}

Did you intentionally drop `_heap_info()`? Doesn't seem to match the original change. Just doing a naive comparison of the two patches, I don't know the context.

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

PR Review Comment: https://git.openjdk.org/jdk25u-dev/pull/93#discussion_r2623732179


More information about the jdk-updates-dev mailing list