Integrated: 8364280: NMTCommittedVirtualMemoryTracker.test_committed_virtualmemory_region_vm fails with assertion "negative distance"

Afshin Zafari azafari at openjdk.org
Tue Aug 12 08:06:18 UTC 2025


On Fri, 8 Aug 2025 08:52:48 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}

This pull request has now been integrated.

Changeset: db12f193
Author:    Afshin Zafari <azafari at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/db12f1934a659843d9cc77f4f21e67ebf9fa94e6
Stats:     21 lines in 1 file changed: 8 ins; 0 del; 13 mod

8364280: NMTCommittedVirtualMemoryTracker.test_committed_virtualmemory_region_vm fails with assertion "negative distance"

Reviewed-by: gziemski, jsjolen

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

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


More information about the hotspot-runtime-dev mailing list