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 09:38:10 UTC 2024


On Wed, 6 Mar 2024 09:27:18 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> Serguei Spitsyn has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   removed trailing spaces in javaClasses.cpp and libInterruptRawMonitor.cpp
>
> 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.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/18093#discussion_r1514137662


More information about the hotspot-runtime-dev mailing list