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.

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

                Created:
                Updated:
                Resolved: