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`.
- links to
-
Review(master) openjdk/jdk/25611