JDK-8276721 : G1: Refine G1EvacFailureObjectsSet::iterate
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 18
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-11-05
  • Updated: 2021-11-15
  • Resolved: 2021-11-10
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 18
18 b23Fixed
Related Reports
Relates :  
Description
Currently, G1EvacFailureObjectsSet::iterate(ObjectClosure* closure) is not a const method, but it looks like a const method. It will be a surprise for reader, we should refine it in some way.

I.e. you would not expect that an iteration method is destructive, clearing out the set it just iterated over.
Comments
Changeset: e91e9d85 Author: Hamlin Li <mli@openjdk.org> Date: 2021-11-10 01:26:35 +0000 URL: https://git.openjdk.java.net/jdk/commit/e91e9d853272ea8f5ce490f2f0c971fd40795d74
10-11-2021