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

Move setting of young index in cset to G1CollectionSet

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • gc
    • b120

      G1 maintains a numbering of all young regions in the collection set in order to record the amount of bytes copied from each young region in a convenient fashion.
      This done by having a _young_index_in_cset member in each HeapRegion which is -1 for non-young and >= 0 for young regions.

      The responsibility for setting this value should be moved to G1CollectionSet, where it's easier to verify that the indices are set in the correct manner for survivor and eden regions instead of relying on YoungList and its state changes to ensure that the indices are correct.

            mgerdin Mikael Gerdin (Inactive)
            mgerdin Mikael Gerdin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: