RFR: 8362276: NMT tests should have locks for the entire tests [v2]
Gerard Ziemski
gziemski at openjdk.org
Thu Jul 17 18:41:59 UTC 2025
On Tue, 15 Jul 2025 22:48:30 GMT, Gerard Ziemski <gziemski at openjdk.org> wrote:
>> We restructure the code to make sure we cover the code that uses the global tree instance (but nothing else that uses the same lock internally) as needed:
>>
>> - we move MemoryReserver::reserve() to the top to do as the first thing
>> - we grab the MemTracker::NmtVirtualMemoryLocker nvml
>> - do all the usual test stuff, including checking, which grabs the global instance of the tree
>> - we move remove_all() to the very bottom to do as the last thing
>>
>> Testing: passes Mach5 tier1-4
>
> Gerard Ziemski has updated the pull request incrementally with one additional commit since the last revision:
>
> restructure code to make sure we use the lock as needed
slash-backport :jdk25
/backport:jdk25
-------------
PR Comment: https://git.openjdk.org/jdk/pull/26324#issuecomment-3085057440
PR Comment: https://git.openjdk.org/jdk/pull/26324#issuecomment-3085061076
More information about the hotspot-runtime-dev
mailing list