I expected they would have to change the IO API in some way to hack that together. It will be interesting to see what they actually had to change. The IO API is already hugely inefficient as-is compared to calling the native functions directly via JNI.
On Tue, May 19, 2020 at 11:49 AM Emmanuel Lécharny <[email protected]> wrote: > > On 19/05/2020 17:25, Jonathan Valliere wrote: > > Right, I’m not sure how loom is going to make any difference other than > > being able to resource limit certain groups of threads. The problem With > > virtual threads is pausing the thread during io; I’m not sure it is even > > possible to do. > > > "The following blocking operations are /virtual thread friendly in/ the > current prototype; these methods do not pin the carrier thread when the > operation blocks." > > (https://wiki.openjdk.java.net/display/loom/Networking+IO) > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
