Usage of direct IO with virtual threads

Andrey Lomakin andrey.lomakin at jetbrains.com
Sat Jul 9 12:49:28 UTC 2022


Hi guys.

Could you clarify is it OK to
use com.sun.nio.file.ExtendedOpenOption#DIRECT  open option with virtual
threads or in other words, will reading/writing to the file which uses
direct IO be converted into the non-blocking call ?

And second question, what is the general status of integration of
FileChannel API with virtual threads, if I , for example, perform fsync,
will it be also converted into non-blocking call at leas on platforms which
theoretically support such possibilities (like io_uring
https://patchwork.kernel.org/project/linux-fsdevel/patch/20190116175003.17880-7-axboe@kernel.dk/)
?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/loom-dev/attachments/20220709/22f878d9/attachment.htm>


More information about the loom-dev mailing list