Proposal for adding O_DIRECT support into JDK 9

Brian Burkhalter brian.burkhalter at oracle.com
Thu Oct 19 00:36:21 UTC 2017


The CSR [1] request [2] for [3] has been approved. One minor specification change was made to obtain CSR approval:

--- a/src/java.base/share/classes/java/nio/file/FileStore.java
+++ b/src/java.base/share/classes/java/nio/file/FileStore.java
@@ -121,7 +121,8 @@
      * @implSpec The implementation in this class throws an
      *         {@code UnsupportedOperationException}.
      *
-     * @return  the block size of this file store, in bytes
+     * @return  a positive value representing the block size of this file store,
+     *          in bytes
      *
      * @throws  IOException

The updated webrev is [4]. This version of the patch also incorporates the fix for [5] which conflicted with the previous version of the direct I/O patch. A successful regression test run was completed.

Unless there are objections to the contrary, I will plan to push these changes tomorrow.

Thanks,

Brian

[1] https://wiki.openjdk.java.net/display/csr/Main
[2] https://bugs.openjdk.java.net/browse/JDK-8189192
[3] https://bugs.openjdk.java.net/browse/JDK-8164900
[4] http://cr.openjdk.java.net/~bpb/8164900/webrev.20/
[5] https://bugs.openjdk.java.net/browse/JDK-8189209
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20171018/55193e55/attachment.html>


More information about the nio-dev mailing list