RFR: 8312498: Thread::getState and JVM TI GetThreadState should return TIMED_WAITING virtual thread is timed parked

Alan Bateman alanb at openjdk.org
Wed Jul 26 17:40:41 UTC 2023


On Wed, 26 Jul 2023 12:20:49 GMT, David Holmes <dholmes at openjdk.org> wrote:

>> test/hotspot/jtreg/serviceability/jvmti/vthread/GetThreadState/GetThreadStateTest.java line 133:
>> 
>>> 131:         } finally {
>>> 132:             thread.join();
>>> 133:             Reference.reachabilityFence(lock);
>> 
>> It would be nice to add a short comment why this is needed.
>
> I can't see why it would be needed.

> It would be nice to add a short comment why this is needed.

It's not needed here, it was needed in another version of the tests. While benign, I can remove it to avoid any confusion. Thanks.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/14978#discussion_r1275293060


More information about the serviceability-dev mailing list