RFR: 8358483: G1: Remove G1HeapRegionManager::num_available_regions

Ivan Walulya iwalulya at openjdk.org
Tue Jun 10 14:46:30 UTC 2025


On Tue, 10 Jun 2025 13:14:16 GMT, Thomas Schatzl <tschatzl at openjdk.org> wrote:

> In general though, I think we should not expose G1HeapRegionManager to other classes via the suggested hrm() getter because imo the region management (getting information about them, iteration) seems to be fairly central to the heap. G1HeapRegionManagerto me is an integral part of the CollectedHeap, and only factored out into an extra class for convenience.

If this is the general approach, then it is fine by me.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/25611#issuecomment-2959538317


More information about the hotspot-gc-dev mailing list