RFR: 8352969: G1: Improve testability of optional collections [v11]

Guanqiang Han ghan at openjdk.org
Thu Sep 11 14:44:33 UTC 2025


> This PR introduces a new diagnostic flag EvacuateAllOptionalRegions to force G1 GC to evacuate all optional regions regardless of the predicted pause time. The motivation is to allow testing and validation of optional region evacuation behavior without being constrained by the remaining pause time.

Guanqiang Han has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 17 commits:

 - Remove #ifdef ASSERT; compiler will optimize unreachable branches
 - Merge remote-tracking branch 'upstream/master' into 8352969
 - Update TestOptionalRegionGC.java
   
   Correct the formatting errors
 - fix a small error
 - fix format error.
 - optimize implementation
 - Merge remote-tracking branch 'upstream/master' into 8352969
 - change flag name
 - Merge remote-tracking branch 'upstream/master' into 8352969
 - fix format error
 - ... and 7 more: https://git.openjdk.org/jdk/compare/fc3e3e26...1fc245af

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

Changes: https://git.openjdk.org/jdk/pull/26880/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=26880&range=10
  Stats: 156 lines in 5 files changed: 146 ins; 0 del; 10 mod
  Patch: https://git.openjdk.org/jdk/pull/26880.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/26880/head:pull/26880

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


More information about the hotspot-gc-dev mailing list