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

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

XMLWordPrintable

    • gc

      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.

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

              Created:
              Updated: