RFR: 8297718: Make NMT free:ing protocol more granular [v3]

Johan Sjölen jsjolen at openjdk.org
Thu Dec 8 12:32:53 UTC 2022


On Thu, 8 Dec 2022 10:05:16 GMT, Johan Sjölen <jsjolen at openjdk.org> wrote:

>> This PR avoids the double registration of a failed `os::realloc` in NMT by doing the NMT free protocol steps inline (asserting block integrity, marking of MallocHeader, and registrering results to statistics). This is done by creating a new struct `FreePackage` which includes all of the necessary data for registrering results.
>> 
>> I also did some light refactoring which I think makes the protocol clearer, these are done piece wise as separate commits for the reviewers' convenience.
>
> Johan Sjölen has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Nits

Tests passing, integrating this.

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

PR: https://git.openjdk.org/jdk/pull/11390


More information about the hotspot-runtime-dev mailing list