RFR: 8236073: G1: Use SoftMaxHeapSize to guide GC heuristics [v4]

Thomas Schatzl tschatzl at openjdk.org
Tue Sep 30 19:32:37 UTC 2025


> Hi all,
> 
>   please review this change to implement `SoftMaxHeapSize` for G1.
> 
> Main change is that `SoftMaxHeapSize` now impacts the `G1IHOPControl::target_occupancy()`, i.e. the amount of bytes G1 when reclaim should start.
> 
> Most of the other changes are just about updating logging/JFR and making sure that the `SoftMaxHeapSize` values are consistent across calls.
> 
> Testing: tier1-5
> 
> Thanks,
>   Thomas

Thomas Schatzl has updated the pull request incrementally with one additional commit since the last revision:

  * align MinHeapSize to heap alignment to avoid issues with conflicting MinHeapSize and SoftMaxHeapSize

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/27524/files
  - new: https://git.openjdk.org/jdk/pull/27524/files/390e70ca..edfcca13

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

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/27524.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/27524/head:pull/27524

PR: https://git.openjdk.org/jdk/pull/27524


More information about the hotspot-gc-dev mailing list