Integrated: 8276721: G1: Refine G1EvacFailureObjectsSet::iterate

Hamlin Li mli at
Wed Nov 10 01:30:10 UTC 2021

On Tue, 9 Nov 2021 03:49:12 GMT, Hamlin Li <mli at> wrote:

> Currently, G1EvacFailureObjectsSet::iterate(ObjectClosure* closure) is not a const method, but it looks like a const method. It will be a surprise for reader, i.e. you would not expect that an iteration method is destructive, clearing out the set it just iterated over.
> We should refine it in some way.

This pull request has now been integrated.

Changeset: e91e9d85
Author:    Hamlin Li <mli at>
Stats:     13 lines in 5 files changed: 1 ins; 0 del; 12 mod

8276721: G1: Refine G1EvacFailureObjectsSet::iterate

Reviewed-by: tschatzl, ayang



More information about the hotspot-gc-dev mailing list