RFR: 8354115: NMT: VMATree should not accept `uncommit` a `released` region

Afshin Zafari azafari at openjdk.org
Thu Apr 10 12:11:09 UTC 2025


At `uncommit` we change the state of the regions to `Reserved`. This is not acceptable to uncommit a  `Released` region and change its state to `Reserved`.
This case is detected and abort the program using `assert`.

Two test-cases added and run.

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

Commit messages:
 - 8354115: NMT: VMATree should not accept `uncommit` a `released` region

Changes: https://git.openjdk.org/jdk/pull/24572/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=24572&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8354115
  Stats: 27 lines in 2 files changed: 27 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/24572.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/24572/head:pull/24572

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


More information about the hotspot-runtime-dev mailing list