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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • 20
    • 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.

            iwalulya Ivan Walulya
            tschatzl Thomas Schatzl
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: