Check for young region in G1BarrierSet::invalidate instead of card-by-card check

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 21
    • Affects Version/s: 20
    • Component/s: hotspot
    • gc
    • b03

      G1BarrierSet::invalidate() checks whether the given Memregion to invalidate is in young gen by checking the corresponding young-card values.

      This is very slow compared to a simple is-start-in-young-gen check as
      the memregion should be either completely in young gen or not, so a single check for that is sufficient.

      Also add necessary asserts to verify that.

            Assignee:
            Ivan Walulya
            Reporter:
            Thomas Schatzl
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: