RFR: 8264821: DirectIOTest fails on a system with large block size

Brian Burkhalter brian.burkhalter at oracle.com
Wed Apr 14 15:46:46 UTC 2021


On Apr 14, 2021, at 8:43 AM, Alan Bateman <alanb at openjdk.java.net<mailto:alanb at openjdk.java.net>> wrote:

test/jdk/java/nio/channels/FileChannel/directio/DirectIOTest.java line 72:

70:     private static int testRead(Path p) throws Exception {
71:         try (FileChannel fc = FileChannel.open(p, ExtendedOpenOption.DIRECT)) {
72:             int bs = (int)blockSize;

It might be a bit clearer to pass the blockSize to the testRead and testWrite methods.

You are probably correct but I already integrated this change.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20210414/46417dc0/attachment.htm>


More information about the nio-dev mailing list