Add method in G1RootProcessor that aborts and waits completion of root region scan

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Duplicate
    • Priority: P4
    • tbd
    • Affects Version/s: 21
    • Component/s: hotspot
    • gc

      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.

            Assignee:
            Thomas Schatzl
            Reporter:
            Thomas Schatzl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: