RFR: 8358529: GenShen: Heuristics do not respond to changes in SoftMaxHeapSize [v5]

Rui Li duke at openjdk.org
Tue Jul 8 00:23: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:

  Use comment style

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/25943/files
  - new: https://git.openjdk.org/jdk/pull/25943/files/503e83ec..8e0b1f21

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=25943&range=04
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=25943&range=03-04

  Stats: 160 lines in 1 file changed: 97 ins; 49 del; 14 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