Re: 回复:回复:Virtual thread hang and all threads stop running on JDK21

Alan Bateman Alan.Bateman at oracle.com
Tue Jun 25 06:26:01 UTC 2024


On 25/06/2024 05:05, 何品(虎鸣) wrote:
> The code below will dead lock
>
>
> -Djdk.virtualThreadScheduler.parallelism=1
> -Djdk.virtualThreadScheduler.maxPoolSize=1
> -Djdk.virtualThreadScheduler.minRunnable=1
>
Right now, class initializer execute with some VM frames on the stack so 
the thread is pinned. The priority right is object monitors but class 
loading and initialization is something that needs to be re-examined next.

-Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/loom-dev/attachments/20240625/c2d4674a/attachment.htm>


More information about the loom-dev mailing list