Virtual threads created more platform threads
Robert Engels
robaho at me.com
Wed Jul 2 03:03:16 UTC 2025
Future.get() should not create additional platforms threads. I suspect it is something else. I would start by providing a simple test case using futures only and you shouldn’t see them increase.
> On Jul 1, 2025, at 9:47 PM, Jianbin Chen <jianbin at apache.org> wrote:
>
>
>
> Hi Loom-dev Community,
>
> I have a question about platform thread creation triggered by calling future.get() within virtual threads, and I would like to ask the community for assistance. The detailed information can be found in this issue: https://github.com/adoptium/adoptium-support/issues/1319. I hope to receive some help from the community regarding this matter. Thank you.
> Additionally, I'd like to know if this situation will still occur in JDK 24 and above?
>
> Best Regards.
> Jianbin Chen, github-id: funky-eyes
>
>
> Best Regards.
> Jianbin Chen, github-id: funky-eyes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/loom-dev/attachments/20250701/b0309785/attachment.htm>
More information about the loom-dev
mailing list