RFR: 8358529: GenShen: Heuristics do not respond to changes in SoftMaxHeapSize [v3]
Rui Li
duke at openjdk.org
Mon Jul 7 03:02:55 UTC 2025
> 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.
Rui Li has updated the pull request incrementally with one additional commit since the last revision:
Remove unnecessary soft_max_capacity accesses
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/25943/files
- new: https://git.openjdk.org/jdk/pull/25943/files/49bda04e..00034259
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=25943&range=02
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=25943&range=01-02
Stats: 64 lines in 16 files changed: 4 ins; 32 del; 28 mod
Patch: https://git.openjdk.org/jdk/pull/25943.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/25943/head:pull/25943
PR: https://git.openjdk.org/jdk/pull/25943
More information about the shenandoah-dev
mailing list