RFR: 8345658: WB_NMTCommitMemory redundantly records an NMT tag

Stefan Karlsson stefank at openjdk.org
Wed Dec 11 11:52:41 UTC 2024


On Fri, 6 Dec 2024 10:09:02 GMT, Stefan Karlsson <stefank at openjdk.org> wrote:

> This functions is called after an previous calls to WB_NMTReserveMemory and WB_NMTAttemptReserveMemoryAt, which both already registered an NMT tag. So, explicitly recording an NMT tag for this memory is redundant and slightly confusing.
> 
> The HotSpot JVM code does not record NMT tags when committing memory (except in a special case on Windows when mapping file memory).
> 
> Tested with tier1-3.

Thanks for the reviews!

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

PR Comment: https://git.openjdk.org/jdk/pull/22601#issuecomment-2535724794


More information about the hotspot-dev mailing list