RFR: 6980847: (fs) Files.copy needs to be tuned [v6]
Brian Burkhalter
bpb at openjdk.org
Wed Jun 22 01:15:24 UTC 2022
On Fri, 17 Jun 2022 16:05:49 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
>> Brian Burkhalter has updated the pull request incrementally with two additional commits since the last revision:
>>
>> - 6980847: Convert to fallback to copy0() method
>> - 6980847: work in progress
>
> src/java.base/unix/native/libnio/fs/UnixCopyFile.c line 141:
>
>> 139: RESTARTABLE(sendfile64(dst, src, NULL, count), bytes_sent);
>> 140: if (bytes_sent < 0) {
>> 141: if (errno == EINTR) {
>
> As the `RESTARTABLE` macro is used, checking for `errno == EINTR` can go away.
Fixed in 04d7502280df1dd0c2dccf34cc93450d86458e81.
-------------
PR: https://git.openjdk.org/jdk/pull/9161
More information about the nio-dev
mailing list