[External] : Re: Native interop with Virtual Threads

Danish Nawab dnawab at outlook.com
Tue Jun 27 11:17:26 UTC 2023


Thanks, all clear.
________________________________
From: Ron Pressler <ron.pressler at oracle.com>
Sent: Monday, June 26, 2023 4:01 PM
To: Danish Nawab <dnawab at outlook.com>
Cc: loom-dev at openjdk.org <loom-dev at openjdk.org>
Subject: Re: [External] : Re: Native interop with Virtual Threads



> On 26 Jun 2023, at 17:45, Danish Nawab <dnawab at outlook.com> wrote:
>
> Thanks Ron.
>
> What about native code that doesn’t make an upcall but does a blocking operation directly (via OS syscalls or similar)? Are such cases also rare?

Yes. But supporting those — even if there was reason to — would have been even harder, as Java has no control or knowledge over what native code does.

>
> What would be the advice if someone is making blocking calls from their downcalls? It might not always be possible to rewrite it in Java.

If those operations are both frequent and lengthy, they shouldn’t be done on virtual threads.

— Ron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/loom-dev/attachments/20230627/90f3d916/attachment-0001.htm>


More information about the loom-dev mailing list