RFR: 8309612: [REDO] JDK-8307153 JVMTI GetThreadState on carrier should return STATE_WAITING [v4]
Serguei Spitsyn
sspitsyn at openjdk.org
Thu Jun 8 03:39:47 UTC 2023
On Thu, 8 Jun 2023 02:07:00 GMT, David Holmes <dholmes at openjdk.org> wrote:
> > A thread carrying a virtual thread can not be in native, blocked, parked, sleeping or waiting on some object.
>A virtual thread can call native code, be blocked on an object monitor, or waiting on an object monitor. Only parking and sleeping are specialized for virtual threads in the list you gave.
This statement was about carrier thread when there is a virtual thread executed at the top.
We are getting state bits with the `java_lang_Thread::get_thread_status(thread_oop)` where the `thread_oop` belongs to the carrier thread. But you are talking about a virtual thread which, of course, can be in almost any state.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/14366#discussion_r1222413499
More information about the hotspot-dev
mailing list