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

Merge G1UpdateRSOrPushRefClosure with G1ParScanClosure

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: 10
    • Fix Version/s: 10
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc

      Description

      After JDK-8175554 it has become clear that the combination of G1UpdateRSOrPushRefClosure and G1ParPushRefClosure does almost exactly the same thing as G1ParScanClosure.

      The only difference is that the latter need to update a flag whether it encountered a reference into the collection set during scanning a card. This extra write should be cheap.

      Replacing G1UpdateRSOrPushRefClosure and G1ParPushRefClosure with G1ParScanClosure would remove a lot code.

      Verify that there are no performance regressions by adding the flag to G1ParScanClosure and using it in place of the other two closures.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: