RFR: 8358577: Test serviceability/jvmti/thread/GetCurrentContendedMonitor/contmon01/contmon01.java failed: unexpexcted monitor object
Chris Plummer
cjplummer at openjdk.org
Sat Jun 7 00:35:51 UTC 2025
On Fri, 6 Jun 2025 23:41:03 GMT, Alex Menkov <amenkov at openjdk.org> wrote:
> 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.
Looks good.
-------------
Marked as reviewed by cjplummer (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/25683#pullrequestreview-2906476152
More information about the serviceability-dev
mailing list