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

Axel Boldt-Christmas aboldtch at openjdk.org
Wed Dec 3 10:35:51 UTC 2025


`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

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

Commit messages:
 - SerialGC: Allow SerialHeap::allocate_loaded_archive_space expand old_gen

Changes: https://git.openjdk.org/jdk/pull/28628/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=28628&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8372995
  Stats: 2 lines in 1 file changed: 1 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/28628.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/28628/head:pull/28628

PR: https://git.openjdk.org/jdk/pull/28628


More information about the hotspot-gc-dev mailing list