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

Improve work distribution during remembered set scan

    XMLWordPrintable

Details

    • gc
    • b04

    Description

      Currently, during remembered set scan every thread may iterate over all cards in the remembered set of a given region; distribution across threads occurs by threads claiming cards N to N+x, and only trying to iterate over these cards.

      To avoid scanning the same card multiple times, G1 marks the already scanned cards in card table.

      One alternative is to for all regions collect the PRTs, and every thread claim part of that region's entire range of cards, building a small local bitmap of cards to scan using the PRTs for that region.

      This ensures that every card is only scanned once during Scan RS, avoids the need for all threads to iterate over all cards of a given region at the cost of small pre-initialization costs.

      Attachments

        Issue Links

          Activity

            People

              tschatzl Thomas Schatzl
              tschatzl Thomas Schatzl
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: