Native interop with Virtual Threads

Danish Nawab dnawab at outlook.com
Mon Jun 26 09:22:38 UTC 2023


Both the JEP [1] and the original Loom proposal [2] state that running native code will pin the virtual thread to its carrier.

I am curious to learn more about the reasons and implementation challenges that cause this limitation. Does it have something to do with how the native code is managed by the JVM? Could you please point me in the right direction?

[1] https://openjdk.org/jeps/444
[2] https://cr.openjdk.org/~rpressler/loom/Loom-Proposal.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/loom-dev/attachments/20230626/941dd850/attachment.htm>


More information about the loom-dev mailing list