RFR: 8325187: JVMTI GetThreadState says virtual thread is JVMTI_THREAD_STATE_INTERRUPTED when it no longer is [v5]
Serguei Spitsyn
sspitsyn at openjdk.org
Wed Mar 6 10:44:16 UTC 2024
On Wed, 6 Mar 2024 09:34:40 GMT, Serguei Spitsyn <sspitsyn at openjdk.org> wrote:
>> src/hotspot/share/runtime/javaThread.cpp line 573:
>>
>>> 571:
>>> 572: Handle thread_h(current, vthread_or_thread());
>>> 573: ObjectLocker lock(Handle(current, java_lang_Thread::interrupt_lock(thread_h())), current);
>>
>> For this version then I assume you should limit it when its a virtual thread and when clear_interrupted is true.
>>
>> Also need to think through if Object.wait will need to be changed as part of this.
>
> Thanks, I'm already working on it.
Fixed as suggested by Alan.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/18093#discussion_r1514240306
More information about the serviceability-dev
mailing list