RFR: 8375359: Improve GC serviceability init staging [v2]
Aleksey Shipilev
shade at openjdk.org
Wed Feb 18 15:29:18 UTC 2026
On Wed, 18 Feb 2026 12:21:48 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:
> I wonder if `Universe::heap()->initialize_serviceability();` can be moved inside `MemoryService::set_universe_heap(Universe::heap());` -- in the context of `universe_post_init`, it's not obvious whether the relative ordering is critical (but it is).
That's a good suggestion. It looks even cleaner to move and sequence both `initialize_serviceability()` and `add_metaspace_memory_pools()`. Please take a look at new commit. It passes stress tests as well.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/29254#issuecomment-3921460993
More information about the hotspot-dev
mailing list