Re: RFR: 8307153: JVMTI GetThreadState on carrier should return STATE_WAITING [v5]

2023-06-07 Thread Serguei Spitsyn
On Wed, 7 Jun 2023 05:50:46 GMT, Alan Bateman wrote: >>> > is_carrying_carrier_thread? a bit artificial, but it's a carrier thread >>> > and it's carrying a virtual thread >>> >>> I guess, your suggestion is `is_carrying_virtual_thread`. Is it right? If >>> so, I like this suggestion. >> >> U

Re: RFR: 8307153: JVMTI GetThreadState on carrier should return STATE_WAITING [v5]

2023-06-07 Thread Serguei Spitsyn
> When a virtual thread is mounted, the carrier thread should be reported as > "waiting" until the virtual thread unmounts. Right now, GetThreadState > reports a state based the JavaThread status when it should return > JVMTI_THREAD_STATE_WAITING | JVMTI_THREAD_STATE_WAITING_INDEFINITELY. > The