G1: Remove G1HeapRegionManager::num_available_regions

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 26
    • Affects Version/s: None
    • Component/s: hotspot
    • gc
    • b03

      This method has a single invocation in `find_contiguous_allow_expand`, which checks if the requested size is too large. However, this early-return logic can be lifted up in the call-chain to `G1CollectedHeap` from `G1HeapRegionManager`. Then, there is no need for `num_available_regions` API in `G1HeapRegionManager`.

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

              Created:
              Updated:
              Resolved: