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

Thomas Schatzl tschatzl at openjdk.org
Tue Sep 30 15:57:49 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:

  * fix whitespace

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

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

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

  Stats: 3 lines in 1 file changed: 0 ins; 0 del; 3 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