RFR: 8286467: G1: Collection set pruning adds one region too many

tqxia duke at openjdk.java.net
Wed May 11 04:13:09 UTC 2022


The following if statement in the do_heap_region function of G1PruneRegionClosure:

> if (_num_pruned > _max_pruned ||
> _cur_wasted + reclaimable > _max_wasted) {
> return true;
> }

should be >=, otherwise one too many region than intended will be added.

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

Commit messages:
 - 8286467: G1: Collection set pruning adds one region too many

Changes: https://git.openjdk.java.net/jdk/pull/8645/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=8645&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8286467
  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk/pull/8645.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/8645/head:pull/8645

PR: https://git.openjdk.java.net/jdk/pull/8645



More information about the hotspot-gc-dev mailing list