Native methods and virtual threads

Alan Bateman Alan.Bateman at oracle.com
Fri Jul 14 19:25:22 UTC 2023


On 14/07/2023 19:51, Alejandro Revilla wrote:
> :
>
> In relation to my initial proposition, I overlooked the 
> jdk.virtualThreadScheduler.maxPoolSizeproperty, which could assist in 
> my scenario. However, it seems to be capped at 256 unless parallelism 
> is also set.

The jdk.virtualThread.* system properties are documented in an 
Implementation Note in the Thread class description. 
jdk.virtualThread.maxPoolSize defaults to 256 but can be increased if 
really needed.

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


More information about the loom-dev mailing list