Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8302881

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • tbd
    • 21
    • 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.

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

              Created:
              Updated:
              Resolved: