-
Bug
-
Resolution: Fixed
-
P4
-
19
-
b23
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.
Impact is limited, as the pruning is an inherently inexact and conservative heuristics driven process.
Reported by Tianqi Xia (https://mail.openjdk.java.net/pipermail/hotspot-gc-dev/2022-May/039287.html)
> if (_num_pruned > _max_pruned ||
> _cur_wasted + reclaimable > _max_wasted) {
> return true;
> }
should be >=, otherwise one too many region than intended will be added.
Impact is limited, as the pruning is an inherently inexact and conservative heuristics driven process.
Reported by Tianqi Xia (https://mail.openjdk.java.net/pipermail/hotspot-gc-dev/2022-May/039287.html)
- relates to
-
JDK-8262185 G1: Prune collection set candidates early
- Resolved