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

G1: avoid BOT updates for survivor allocations and dirty survivor regions incrementally

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • hs22
    • hs21
    • hotspot
    • gc
    • b02
    • generic
    • generic
    • Not verified

        Currently when we allocate objects into survivor regions during GC we actually update the BOT even though we don't need to (we'll never have to scan cards on survivor regions so we won't need to do BOT look-ups for those regions). Additionally, we dirty the cards on the survivor regions as an extra pass at the end of the GC.

        We should improve the above by:

        a) Avoid BOT updates for survivor regions (like we do for mutator allocations), and
        b) Dirty the cards on survivor regions incrementally, upon every allocation (like, again, we do for mutator allocations)

        We now have a G1AllocRegion abstraction in G1 (pushed as part of 7023151) that we use for mutator allocation regions. We should re-use it for GC allocation regions too given that we currently have a lot of code replication.

              tonyp Tony Printezis
              tonyp Tony Printezis
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: