RFR: 8329223: Parallel: Parallel GC resizes heap even has -Xms = -Xmx [v3]

Albert Mingkun Yang ayang at openjdk.org
Tue Apr 16 11:48:48 UTC 2024


On Tue, 16 Apr 2024 11:29:18 GMT, Zhengyu Gu <zgu at openjdk.org> wrote:

>> Parallel GC resizes old gen even when setting -Xms == -Xmx. 
>> 
>> During GC argument setup, it always set `MinOldSize = GenAlignment` and does not make any adjustment when `-Xms == -Xmx`, while does the adjustment for young gen [here](https://github.com/openjdk/jdk/blob/master/src/hotspot/share/gc/shared/genArguments.cpp#L250)
>
> Zhengyu Gu has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains four additional commits since the last revision:
> 
>  - albertnetymk's suggestion
>  - Merge branch 'master' into JDK-8329223
>  - Cleanup
>  - 8329223: Parallel: Parallel GC resizes heap even has -Xms = -Xmx

I wonder what others think.

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

Marked as reviewed by ayang (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/18539#pullrequestreview-2003399590


More information about the hotspot-gc-dev mailing list