RFR: 8236073: G1: Use SoftMaxHeapSize to guide GC heuristics
Man Cao
manc at openjdk.org
Mon Mar 24 23:15:08 UTC 2025
On Mon, 24 Mar 2025 23:07:08 GMT, Man Cao <manc at openjdk.org> wrote:
> Hi all,
>
> I have implemented SoftMaxHeapSize for G1 as attached. It is completely reworked compared to [previous PR](https://github.com/openjdk/jdk/pull/20783), and excludes code for `CurrentMaxHeapSize`. I believe I have addressed all direct concerns from [previous email thread](https://mail.openjdk.org/pipermail/hotspot-gc-dev/2024-November/050214.html), such as:
>
> - does not respect `MinHeapSize`;
> - being too "blunt" and does not respect other G1 heuristics and flags for resizing, such as `MinHeapFreeRatio`, `MaxHeapFreeRatio`;
> - does not affect heuristcs to trigger a concurrent cycle;
>
> [This recent thread](https://mail.openjdk.org/pipermail/hotspot-gc-dev/2025-March/051619.html) also has some context.
@mo-beck Here is my implementation for `SoftMaxHeapSize` for G1. Let me know if you have any feedback or concerns.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/24211#issuecomment-2749599999
More information about the hotspot-gc-dev
mailing list