[Discussion] Serial GC: Expand young generation size

Albert Yang albert.m.yang at oracle.com
Wed Jan 8 10:27:39 UTC 2025


Re https://bugs.openjdk.org/browse/JDK-8333386, I think your suggestion, "add the option `-XX:NewSize=65m`", is the way to go.

As for adding young-gen expansion support to Serial, it probably should have its own enhancement ticket.

I am currently working on placing from/to spaces before eden inside young-gen as part of Parallel heap-auto-sizing. I believe Serial can use the same layout (from/to/eden, instead of eden/from/to) to facilitate eden/young-gen expansion. My 2c.

/Albert

________________________________________
From: hotspot-gc-dev <hotspot-gc-dev-retn at openjdk.org> on behalf of Guoxiong Li <lgxbslgx at gmail.com>
Sent: Wednesday, January 8, 2025 09:30
To: hotspot-gc-dev at openjdk.org
Subject: [Discussion] Serial GC: Expand young generation size

Hi all,

Currently, the young generation in SerialGC can't be expanded now
and is always the initial young generation size. It is not a very big problem generally.
But in some situations, like JDK-8333386 [1], it will crash the VM (unnecessary OutOfMemoryError).

So I want to implement the feature to expand the young generation size
(absolutely, not exceeding the max young generation size).
What do you think about it? Any ideas will be appreciated.

Best Regards,
-- Guoxiong

Related links:
[1] https://bugs.openjdk.org/browse/JDK-8333386
[2] https://bugs.openjdk.org/browse/JDK-8335925



More information about the hotspot-gc-dev mailing list