RFR: 8304442: Allocate VirtualMemoryTracker into Arena
Thomas Stuefe
stuefe at openjdk.org
Tue Mar 28 12:01:30 UTC 2023
On Tue, 28 Mar 2023 08:56:43 GMT, Johan Sjölen <jsjolen at openjdk.org> wrote:
> > These sorted regions are never deleted?
>
> They are, via `VMT::remove_released_region`.
I don't understand then; would this not leak memory if we randomly remove regions? Since with an Arena, you only can effectively reclaim the topmost allocation?
Easy check: call os::reserve_memory/commit_memory a million times with random - and disjunct - address ranges. If RSS stays stable, we are good.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/13190#issuecomment-1486734277
More information about the hotspot-runtime-dev
mailing list