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

Ivan Walulya iwalulya at openjdk.org
Mon May 5 09:50:33 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 with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains five additional commits since the last revision:

 - use align_up_to_region_byte_size
 - Merge remote-tracking branch 'upstream/master' into full_collection_resize_amount
 - Thomas Review
 - nit
 - refactor full collection

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

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

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

  Stats: 19999 lines in 573 files changed: 15129 ins; 2714 del; 2156 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