RFR: 8364280: NMTCommittedVirtualMemoryTracker.test_committed_virtualmemory_region_vm fails with assertion "negative distance" [v2]

Gerard Ziemski gziemski at openjdk.org
Mon Aug 11 16:09:13 UTC 2025


On Fri, 8 Aug 2025 09:32:50 GMT, Afshin Zafari <azafari at openjdk.org> wrote:

>> The VirtualMemoryTracker API uses a tree internally for tracking the memory regions and their states/info. This tree should not be changed when looking for some regions. If not synch'ed, the nodes in the tree may change meanwhile and the retrieved info are not as expected. The unit test in this PR did not synch these looking up with VMT. The corresponding lock is used to address the problem.
>> 
>> Tests:
>> local: linux-x64-debug NMTGtests
>> mach5: tiers 1-5, {macosx-aarch64, linux-x64, windows-x64} x {debug, release}
>
> Afshin Zafari has updated the pull request incrementally with one additional commit since the last revision:
> 
>   space added

Marked as reviewed by gziemski (Reviewer).

LGTM, thanks for fixing this!

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

PR Review: https://git.openjdk.org/jdk/pull/26689#pullrequestreview-3106607561
PR Comment: https://git.openjdk.org/jdk/pull/26689#issuecomment-3175619127


More information about the hotspot-runtime-dev mailing list