RFR: 8274112: (fc) Tune FileChannel.transferTo() [v6]

Brian Burkhalter bpb at openjdk.java.net
Fri Apr 29 22:29:43 UTC 2022


On Fri, 29 Apr 2022 13:16:17 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   8274112: Revert all changes except mapped transfer threshold
>
> src/java.base/share/classes/sun/nio/ch/FileChannelImpl.java line 1384:
> 
>> 1382:     // Transfers from src to dst, or returns IOStatus.UNSUPPORTED (-4)
>> 1383:     // or IOStatus.UNSUPPORTED_CASE (-6) if kernel can't do that
>> 1384:     private static native long transferTo0(FileDescriptor src, long position,
> 
> It might be better to say "if the kernel does not support it" rather than "kernel can't do that".

Agreed. That phrase was already there. I will change it.

-------------

PR: https://git.openjdk.java.net/jdk/pull/5623


More information about the nio-dev mailing list