RFR: 8358679: [asan] vmTestbase/nsk/jvmti tests show memory issues

Alex Menkov amenkov at openjdk.org
Tue Jul 8 00:09:13 UTC 2025


The fix updates several tests ASAN complains about.
Tests for RawMonitors intentionally passes bad pointer to tested function, they should not be run with ASAN.
Test vmTestbase/nsk/jvmti/scenarios/events/EM07/em07t002 verifies COMPILED_METHOD_LOAD/COMPILED_METHOD_UNLOAD event and uses RawMonitor for synchronization. It destroys the monitor, but some events may arrive later (before VM exits). Usually JVMTI tests do not destroy synchronization monitors, removed destruction here.

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

Commit messages:
 - fix

Changes: https://git.openjdk.org/jdk/pull/26176/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=26176&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8358679
  Stats: 25 lines in 6 files changed: 15 ins; 4 del; 6 mod
  Patch: https://git.openjdk.org/jdk/pull/26176.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/26176/head:pull/26176

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


More information about the serviceability-dev mailing list