RFR: 8312498: Thread::getState and JVM TI GetThreadState should return TIMED_WAITING virtual thread is timed parked [v3]
David Holmes
dholmes at openjdk.org
Fri Sep 15 00:38:56 UTC 2023
On Thu, 14 Sep 2023 13:29:48 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> Yes but TIMED and SUSPENDED are not alike. I assume SUSPENDED is a stand-alone bit because you can be in various states and suspended at the same time. But TIMED isn't like that.
>
>> Yes but TIMED and SUSPENDED are not alike. I assume SUSPENDED is a stand-alone bit because you can be in various states and suspended at the same time. But TIMED isn't like that.
>
> The SUSPENDED bit can only be set when the virtual thread is unmounted, so limited to the RUNNABLE and PARKED states at this time.
>
> The intention with TIMED was that it could be OR'ed with PARKING, PARKED or PINNED to qualify that they are timed rather than untimed. It wouldn't make sense in other states.
What is TIMED PINNING?
To me TIMED_X are a specific set of states and there are not enough of them to consider TIMED to be a bit that can be applied to any state X.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/14978#discussion_r1326652913
More information about the serviceability-dev
mailing list