RFR: 8337217: Port VirtualMemoryTracker to use VMATree [v40]

Afshin Zafari azafari at openjdk.org
Mon Jun 16 12:06:31 UTC 2025


> - `VMATree` is used instead of `SortedLinkList` in new class `VirtualMemoryTracker`.
>  -  A wrapper/helper `RegionTree` is made around VMATree to make some calls easier.
>  - `find_reserved_region()` is used in 4 cases, it will be removed in further PRs.
>  - All tier1 tests pass except this https://bugs.openjdk.org/browse/JDK-8335167.

Afshin Zafari has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 86 commits:

 - changes after merge
 - Merge remote-tracking branch 'origin/master' into _8337217_nmt_VMT_with_tree
 - fixes after merge with master.
 - Merge remote-tracking branch 'origin/master' into _8337217_nmt_VMT_with_tree
 - Merge remote-tracking branch 'origin/master' into _8337217_nmt_VMT_with_tree
 - more reviews.
 - review comments applied
 - test cases for doing reserve or commit the same region twice.
 - style, some cleanup, VMT and regionsTree circular dep resolved
 - removed UseFlagInPlace test.
 - ... and 76 more: https://git.openjdk.org/jdk/compare/3a188726...e303ee7c

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

Changes: https://git.openjdk.org/jdk/pull/20425/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=20425&range=39
  Stats: 1426 lines in 26 files changed: 555 ins; 557 del; 314 mod
  Patch: https://git.openjdk.org/jdk/pull/20425.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/20425/head:pull/20425

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


More information about the hotspot-runtime-dev mailing list