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

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

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 21
    • 20
    • hotspot
    • gc
    • b03

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: