JDK-8302881 : Add method in G1RootProcessor that aborts and waits completion of root region scan
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 21
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2023-02-20
  • Updated: 2023-02-20
  • Resolved: 2023-02-20
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.
Other
tbdResolved
Related Reports
Duplicate :  
Description
G1 code contains the following piece of code to abort root region scan and wait for its completion twice:

    _cm->root_regions()->abort();
    _cm->root_regions()->wait_until_scan_finished();

Adding a helper removes the code duplication. Further, in the future there is likely need for more work to be done at these places, so factoring out this sequence seems useful.