RFR: 8356222: Thread.print command reports waiting on the Class initialization monitor for both carrier and virtual threads
Alan Bateman
alanb at openjdk.org
Thu May 22 10:06:50 UTC 2025
On Thu, 22 May 2025 09:44:01 GMT, David Holmes <dholmes at openjdk.org> wrote:
> At the moment class initialization in a vthread pins the carrier so I'm not sure why this is considered a problem??
The output is confusing as it prints the "waiting on the Class initialization monitor for XXX" twice. It makes it looks like the carrier is blocked in java.lang.VirtualThread.runContinuation is waiting for XXX to be initialized. So I think we should fix this, only print the "waiting on Class .." line once, and in the virtual thread stack trace as that it is thread that is really waiting.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/25367#issuecomment-2900639175
More information about the serviceability-dev
mailing list