G1: Add index based heap region iteration

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 20
    • Affects Version/s: 20
    • Component/s: hotspot
    • gc
    • b16

      Currently, heap region iteration uses `HeapRegionClosure`, which accepts a `HeapRegion*`. In some cases, region-index alone is used on the fast path. Retrieving the region index from `HeapRegion*` incurs unnecessary memory access.

       JDK-8293210 is an example of such case.

            Assignee:
            Albert Yang
            Reporter:
            Albert Yang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: