RFR: 8330846: Add stacks of mounted virtual threads to the HotSpot thread dump [v18]

Alan Bateman alanb at openjdk.org
Thu Jun 13 16:11:21 UTC 2024


On Thu, 13 Jun 2024 14:37:45 GMT, Inigo Mediavilla Saiz <duke at openjdk.org> wrote:

> Would you mind explaining why unparking the main (virtual) thread can end up with the main thread observing the dummy thread in transition ?

The unpark of main requires queueing the task for main. This can trigger a new FJP worker to be started and there are several points where it may park. For reason that are complicated to go into here, this happens in the context of the carrier. The thread dump at this point is seeing a mounted continuation but JavaThread._vthread is pointing to self temporarily.

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

PR Comment: https://git.openjdk.org/jdk/pull/19482#issuecomment-2166116062


More information about the serviceability-dev mailing list