RFR: 8355756: G1HeapSizingPolicy::full_collection_resize_amount should consider allocation size [v2]

Ivan Walulya iwalulya at openjdk.org
Wed Apr 30 10:15:30 UTC 2025


> Hi,
> 
> Please review this change to account for pending allocations when deciding how much to shrink the heap after a full gc. Otherwise, we shrink the heap only to trigger an expansion to satisfy the allocation request that triggered the full gc.
> 
> Testing: Tier 1-3

Ivan Walulya has updated the pull request incrementally with one additional commit since the last revision:

  Thomas Review

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/24944/files
  - new: https://git.openjdk.org/jdk/pull/24944/files/130eda71..6ef77f71

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

  Stats: 6 lines in 2 files changed: 5 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/24944.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/24944/head:pull/24944

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


More information about the hotspot-gc-dev mailing list