RFR: 8286467: G1: Collection set pruning adds one region too many
Albert Mingkun Yang
ayang at openjdk.java.net
Wed May 11 08:30:44 UTC 2022
On Wed, 11 May 2022 04:06:48 GMT, tqxia <duke at openjdk.java.net> wrote:
> 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.
Marked as reviewed by ayang (Reviewer).
-------------
PR: https://git.openjdk.java.net/jdk/pull/8645
More information about the hotspot-gc-dev
mailing list