The PR fixes race in the test between ThreadStart/ThreadEnd callbacks and agent thread: The callbacks increments event counter and then do self-suspend; Agent thread waits when expected number of events is received, then performs verification and resumes the thread, but expected counter value does not mean the threads are suspended.
------------- Commit messages: - fix Changes: https://git.openjdk.org/jdk/pull/22532/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=22532&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8305010 Stats: 38 lines in 1 file changed: 36 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/22532.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/22532/head:pull/22532 PR: https://git.openjdk.org/jdk/pull/22532