On Thu, 8 Jun 2023 02:07:00 GMT, David Holmes <dhol...@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

Reply via email to