RFR: 8287200: Test java/lang/management/ThreadMXBean/VirtualThreadDeadlocks.java timed out after JDK-8287103
Alan Bateman
alanb at openjdk.java.net
Thu May 26 05:44:28 UTC 2022
On Wed, 25 May 2022 23:04:50 GMT, Leonid Mesnik <lmesnik at 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
More information about the serviceability-dev
mailing list