Implementation of AsynchronousFileChannel using io_uring API

Alan Bateman Alan.Bateman at oracle.com
Thu Nov 18 08:02:22 UTC 2021


On 18/11/2021 06:33, Andrey Lomakin wrote:
> Hi guys.
> The article described the state of the project Loom announced plans to
> implement AsynchronousFileChannel using io_uring API.
> Unfortunately, I did not find any further information about the state of
> this implementation.
> Could you provide an update on whether such implementation was completed?
I suspect this is the "State of Loom", May 2020 edition, is that right? 
For buffered file I/O it outlines two phases, short term to compensate 
for the pinning, later to make use of OS mechanism where possible. So 
yes, the intention is to come back to an io_uring implementation of 
FileChannel and java.io, just not in the first release. 
AsynchronousFileChannel provides an async API so not directly 
interesting to this project. It could potentially be re-implemented 
using io_uring, independent of this project. The draft JEP for virtual 
threads [1] has a work-in-progress summary of the core of a possible 
first release.

-Alan

[1] https://openjdk.java.net/jeps/8277131


More information about the loom-dev mailing list