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

G1: Stack allocate instances of HeapRegionRemSetIterator

XMLWordPrintable

    • gc
    • b31
    • generic
    • generic

        During heap initialization we pre-allocate instances of the HeapRegionRemSetIterator (one per GC worker thread) and during RSetscanning each worker thread fetches its iterator and re-initializes the iterator's fields with the heap region and heap region remembered set that the worker thread is currently working on.

        Pre-allocating the iterators could result in some false cache sharing among worker threads. It would be better if the iterator instances were stack allocated.

              johnc John Cuthbertson
              johnc John Cuthbertson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: