RFR: 8306034: add support of virtual threads to JVMTI StopThread [v2]

Serguei Spitsyn sspitsyn at openjdk.org
Tue Apr 25 04:36:09 UTC 2023


On Tue, 25 Apr 2023 03:49:09 GMT, Chris Plummer <cjplummer at openjdk.org> wrote:

>>> The scenario that I'm wondering about is where a virtual thread is resumed
>>> at around the same time that JVMTI StopThread is called.
>> 
>> This kind of scenario is not typical.
>> The debugger should keep virtual thread suspended when making a call to JVMTI StopThread.
>> Normally, this kind of race should never happen with the JDWP agent.
>> Chris, why do you think it is important to have a stress test for this?
>> Also, do you have any testing scenario in mind?
>
> I guess if it is not something that would typically ever be done in realistic situations, then there is no need for a stress test.

Okay, thanks.
I've extended the test to cover BoundVirtualThread's as well.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/13546#discussion_r1175995873


More information about the serviceability-dev mailing list