RFR: 8276721: G1: Refine G1EvacFailureObjectsSet::iterate [v3]

Hamlin Li mli at openjdk.java.net
Tue Nov 9 10:13:01 UTC 2021


> 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.

Hamlin Li has refreshed the contents of this pull request, and previous commits have been removed. The incremental views will show differences compared to the previous content of the PR. The pull request contains one new commit since the last revision:

  Just rename to remove iterate in names

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/6303/files
  - new: https://git.openjdk.java.net/jdk/pull/6303/files/4b33882b..21188299

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=6303&range=02
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=6303&range=01-02

  Stats: 127 lines in 5 files changed: 22 ins; 64 del; 41 mod
  Patch: https://git.openjdk.java.net/jdk/pull/6303.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/6303/head:pull/6303

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


More information about the hotspot-gc-dev mailing list