loom-dev Digest, Vol 95, Issue 2

Alan Bateman alan.bateman at oracle.com
Tue Nov 4 09:58:08 UTC 2025



On 04/11/2025 03:17, Xialin Liu wrote:
> :
>
> Interestingly, the stack traces appear to be in normal Java code, 
> which makes the root cause non-obvious at first glance.
>
>
Just on this observation. I think your output/thread dump is from a 
build of JDK 21. It has been improved since then if you try JDK 25 then 
it will clearly delineate the stack trace of the carrier from the stack 
trace of the mounted virtual thread. If a virtual thread is waiting for 
another thread to initialize a class then has the "- waiting on the 
Class initialization monitor for XXX" at the frame where the virtual 
thread is waiting.

-Alan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/loom-dev/attachments/20251104/2facf8ed/attachment.htm>


More information about the loom-dev mailing list