RFR: 8372995: SerialGC: Allow SerialHeap::allocate_loaded_archive_space expand old_gen

Albert Mingkun Yang ayang at openjdk.org
Wed Dec 3 10:59:52 UTC 2025


On Wed, 3 Dec 2025 10:24:18 GMT, Axel Boldt-Christmas <aboldtch at openjdk.org> wrote:

> `SerialHeap::allocate_loaded_archive_space` does currently not expand the old gen when allocating the archive space. This will cause problems when a not streamed aot archive cannot fit within the initial old size.
> 
> I propose we change this work like `ParallelHeap::allocate_loaded_archive_space` where we allow for old generation expansion. 
> 
> The not streamed aot archive will now only be limited by the max old size rather than the initial old size.
> 
> * Testing
>   * Running GHA
>   * Running tier 1-5 on Oracle supported platforms

Marked as reviewed by ayang (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/28628#pullrequestreview-3534477647


More information about the hotspot-gc-dev mailing list