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

Calculate liveness in regions during marking

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 11
    • 11
    • hotspot
    • gc
    • b10

      Rebuilding the remembered sets in JDK-8180415 requires G1 to have an idea which regions' remembered sets should be recalculated.

      One metric G1 uses since forever is the liveness within a region; if it is above a given threshold, we do not evacuate that region in the next mixed gc phase.

      To simulate this, we want to have region liveness information before rebuilding the remembered sets, i.e. at the end of remark.

      Similar argument can be made for the number of incoming references which is a good indicator for the size of the remembered set for that region.

      This metric can also be used in the future for e.g. freeing the completely empty regions at remark to allow immediate reuse (JDK-8154528).

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

              Created:
              Updated:
              Resolved: