On Wed, 25 May 2022 23:04:50 GMT, Leonid Mesnik <lmes...@openjdk.org> wrote:
>> test/jdk/java/lang/management/ThreadMXBean/VirtualThreadDeadlocks.java line >> 100: >> >>> 98: while (thread.getState() != Thread.State.BLOCKED) { >>> 99: Thread.sleep(10); >>> 100: if (thread.getState() == Thread.State.TERMINATED) { >> >> Thread.State.TERMINATED == thread.getState(). Does it make sense? > > Not sure. What is the goal? I assume this test is catch the catch where the thread terminates without blocking. Using isAlive might be cleaner for people to understand. ------------- PR: https://git.openjdk.java.net/jdk/pull/8874