RFR: 8287200: Test java/lang/management/ThreadMXBean/VirtualThreadDeadlocks.java timed out after JDK-8287103

Kevin Walls kevinw at openjdk.java.net
Tue May 24 20:35:57 UTC 2022


On Tue, 24 May 2022 19:52:57 GMT, Leonid Mesnik <lmesnik at openjdk.org> wrote:

> Need to use proper synchronization.
> 
> The CyclicBarriers might move the thread to WAITING state but not BLOCKED. So it should not confuse existing checks.

Yes I think that's nice - the two competing Threads own their first lock and wait until the other thread has owned its first lock, before continuing. 8-)

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

Marked as reviewed by kevinw (Committer).

PR: https://git.openjdk.java.net/jdk/pull/8874


More information about the serviceability-dev mailing list