Remove _scan_top from HeapRegion

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 10
    • Affects Version/s: 9, 10
    • Component/s: hotspot
    • gc
    • b21

      HeapRegion's _scan_top serves the single purpose that during garbage collection we do not try to scan areas that are potentially being allocated into at the moment.

      This enhancement suggests to remove _scan_top from HeapRegion and take a snapshot of top() values at start of GC.

      This removes potentially slow access to top/scan_top during GC as we need to serialize using a loadload barrier.

      Additionally, the "new" scan_top information can be subsumed with the cascade of if's that refinement during GC needs to do otherwise.

      Incidentally doing all that improves update rs/scan rs times in benchmarks.

            Assignee:
            Thomas Schatzl
            Reporter:
            Thomas Schatzl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: