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

Lazily set card table of allocated regions to correct values in G1

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 14
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Subcomponent:
      gc

      Description

      Currently G1 always sets the card table to all-clean during GC and updates it to the appropriate value during allocation (i.e. young).

      Observation is that in the large majority of cases, during stable operation, the same regions get allocated to the same type due to how young/old is seggregated during allocation. I.e. a recently cleared young region will be allocated as young almost immediately anyway, wasting the time and effort to first clean and then set to young.

      Also, setting all cards to all-clean for all regions takes a lot of time during GC, particularly in throughput oriented large heap loads around 7-10% of pause time.

      Investigate doing the clearing lazily, keeping the as-young-marked regions during gc.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated: