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

G1: Remove G1HeapRegionManager::num_available_regions

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • hotspot
    • gc

      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`.

            ayang Albert Yang
            ayang Albert Yang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: