RFR: 8265175: (fs) Files.copy(Path, Path, CopyOption...) should use sendfile on Linux [v4]
Brian Burkhalter
bpb at openjdk.java.net
Thu Apr 15 18:51:36 UTC 2021
On Thu, 15 Apr 2021 18:42:20 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
>>
>> 8265175: Transfer in 1MB chunks; fail with errno if sendfile() returns -1; no fallback to read-write transfer
>
> src/java.base/unix/native/libnio/fs/UnixCopyFile.c line 79:
>
>> 77: }
>> 78: } while (bytes_sent > 0);
>> 79: #else
>
> Thanks, I think this right. I'll double it on Friday.
All right, thanks.
-------------
PR: https://git.openjdk.java.net/jdk/pull/3476
More information about the nio-dev
mailing list