RFR: 8358577: Test serviceability/jvmti/thread/GetCurrentContendedMonitor/contmon01/contmon01.java failed: unexpexcted monitor object
Alex Menkov
amenkov at openjdk.org
Fri Jun 6 23:45:41 UTC 2025
The change fixes race in the test.
Tested thread is expected to have no contended monitor when main thread checks it, but System.out.println() can cause waiting on a monitor when concurrent printing is performed, so printing should not be performed after signalling main thread to continue.
-------------
Commit messages:
- fix
Changes: https://git.openjdk.org/jdk/pull/25683/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=25683&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8358577
Stats: 3 lines in 1 file changed: 1 ins; 1 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/25683.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/25683/head:pull/25683
PR: https://git.openjdk.org/jdk/pull/25683
More information about the serviceability-dev
mailing list