[jdk19] RFR: 8288703: GetThreadState returns 0 for virtual thread that has terminated [v3]

Alan Bateman alanb at openjdk.org
Sat Jul 2 05:09:43 UTC 2022


On Sat, 2 Jul 2022 03:22:31 GMT, Serguei Spitsyn <sspitsyn at openjdk.org> wrote:

> Interesting enough that I've found the existing test which already had needed coverage: ` test/hotspot/jtreg/serviceability/jvmti/thread/GetThreadState/thrstat03` But this test was adjusted to adopt to incorrect GetThreadState result for virtual threads, so I had to fix it now. Strongly speaking, the update of SelfSuspendDisabledTest is not needed. But I feel it is worth to keep it.

This goes to my surprise that we didn't have a test already but you've found it, and found that it should have caught this bug except that it has been changed. Good to find this and I that is the right place to have a unit test for GetThreadState.

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

PR: https://git.openjdk.org/jdk19/pull/102


More information about the serviceability-dev mailing list