Proposal for adding O_DIRECT support into JDK 9

Lu, Yingqi at
Fri Aug 25 16:38:38 UTC 2017

Dear All,

Please let us know if you have any additional feedback or questions on this patch.

Patch is available at

JBS link is available at

Thank you!

From: nio-dev [mailto:nio-dev-bounces at] On Behalf Of Brian Burkhalter
Sent: Monday, August 14, 2017 4:10 PM
To: Markle, Seth <smarkle at>
Cc: nio-dev at
Subject: Re: Proposal for adding O_DIRECT support into JDK 9

On Aug 14, 2017, at 2:32 PM, Markle, Seth <smarkle at<mailto:smarkle at>> wrote:

Please let us know your comments and feedback. Thank you very much for your consideration!

Are there any plans to plumb this through to higher level classes built on top of FileChannel.  For example, will there be a way to open RandomAccessFile handles with O_DIRECT?

No. In any case, the APIs such as RandomAccessFile are not built on top of the New I/O APIs (java.nio). The latter were introduced under JSR 51 [1] to complement and improve upon the pre-existing I/O classes in the package.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nio-dev mailing list