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

tqxia duke at openjdk.java.net
Thu May 12 06:44:42 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.

This pull request has now been integrated.

Changeset: 7567627f
Author:    tqxia <txiadev at gmail.com>
Committer: Thomas Schatzl <tschatzl at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/7567627f4a520b4a8b9afd4f6bf5e6c716031569
Stats:     1 line in 1 file changed: 0 ins; 0 del; 1 mod

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

Reviewed-by: tschatzl, ayang

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

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



More information about the hotspot-gc-dev mailing list