RFR: JDK-8310584: GetThreadState reports blocked and runnable for pinned suspended virtual threads

David Holmes dholmes at openjdk.org
Mon Jul 17 04:40:05 UTC 2023


On Fri, 14 Jul 2023 18:41:01 GMT, Alex Menkov <amenkov at openjdk.org> wrote:

> > The change seems consistent with the definition of `GetThreadState`. But I note that the interrupt bit should also only be set if the target is alive.
> 
> we get interrupt bit from Thread object, so the value is consistent with terminated state. suspend bit is a bit different - see my reply to Serguei

Sorry I don't follow. I don't see anything that prevents the target from terminating after you have read the interrupt bit from the thread object, but before you read the actual state.

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

PR Comment: https://git.openjdk.org/jdk/pull/14878#issuecomment-1637365223


More information about the serviceability-dev mailing list