RFR: 8295976: GetThreadListStackTraces returns wrong state for blocked VirtualThread

Alan Bateman alanb at openjdk.org
Tue Jun 6 07:42:52 UTC 2023


On Tue, 6 Jun 2023 07:30:26 GMT, David Holmes <dholmes at openjdk.org> wrote:

> Just a passing comment but I happened to notice today that when a virtual thread blocks on a legacy synchronization mechanism, it delegates to its carrier thread to report its state. It is not at all clear to me how this is handled at the JVMTI level.

When mounted, the virtual thread state comes from its carrier. JVM TI GetThreadState and other functions that return state do the same. Somehow the bulk function GetThreadListStackTraces was missed.

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

PR Comment: https://git.openjdk.org/jdk/pull/14326#issuecomment-1578097719


More information about the hotspot-dev mailing list