RFR: 8345658: WB_NMTCommitMemory redundantly records an NMT tag
Stefan Karlsson
stefank at openjdk.org
Fri Dec 6 10:13:12 UTC 2024
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.
-------------
Commit messages:
- 8345658: WB_NMTCommitMemory redundantly records an NMT tag
Changes: https://git.openjdk.org/jdk/pull/22601/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=22601&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8345658
Stats: 2 lines in 1 file changed: 0 ins; 2 del; 0 mod
Patch: https://git.openjdk.org/jdk/pull/22601.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/22601/head:pull/22601
PR: https://git.openjdk.org/jdk/pull/22601
More information about the hotspot-dev
mailing list