Integrated: 8358529: GenShen: Heuristics do not respond to changes in SoftMaxHeapSize
Rui Li
duke at openjdk.org
Tue Jul 8 18:36:44 UTC 2025
On Mon, 23 Jun 2025 21:42:36 GMT, Rui Li <duke at openjdk.org> wrote:
> Generational shenandoah currently doesn't pick up the changes of managed flag `SoftMaxHeapSize` when the app is running. This is because the value of `_soft_max_capacity` in `shenandoahGeneration` is never changed.
>
> This change delegates the soft max heap size in `shenandoahGeneration` to `ShenandoahGenerationalHeap::heap()->soft_max_capacity()`, which does pick up the flag value changes.
>
> Also, found `ShenandoahHeap:: initialize` uses `_num_regions * reg_size_bytes` rather than user input flag value. Updated to using actual flag value.
This pull request has now been integrated.
Changeset: fa32bfe1
Author: Rui Li <ruiamzn at amazon.com>
Committer: William Kemper <wkemper at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/fa32bfe11300fdadb35f083037f6ab2a8985d210
Stats: 177 lines in 17 files changed: 78 ins; 32 del; 67 mod
8358529: GenShen: Heuristics do not respond to changes in SoftMaxHeapSize
Reviewed-by: wkemper
-------------
PR: https://git.openjdk.org/jdk/pull/25943
More information about the shenandoah-dev
mailing list