RFR: JDK-8302811: NMT.random_reallocs_vm fails if NMT is off

Thomas Stuefe stuefe at openjdk.org
Sat Feb 18 14:57:02 UTC 2023


Trivial patch to fix a test error.

The test checks, among other things, that reallocated-grown buffers get their newly added space zapped by hotspot in debug builds.

However, hotspot can only zap if NMT is enabled. With NMT disabled, it lacks the necessary information to do so.

Note that this bug had been hidden by [JDK-8302810](https://bugs.openjdk.org/browse/JDK-8302810).

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

Commit messages:
 - JDK-8302811-NMT.random_reallocs_vm-fails-if-NMT-is-off

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

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


More information about the hotspot-runtime-dev mailing list