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

Chris Plummer cjplummer at openjdk.org
Tue Apr 25 03:52:07 UTC 2023


On Tue, 25 Apr 2023 02:15:54 GMT, Serguei Spitsyn <sspitsyn at openjdk.org> wrote:

>> Seems we should have a stress test for that.
>
>> 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.

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

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


More information about the serviceability-dev mailing list