RFR: 8292562: (fc) Use copy_file_range in FileChannel::transferTo on Linux [v4]

Brian Burkhalter bpb at openjdk.org
Tue Aug 23 17:54:20 UTC 2022


On Tue, 23 Aug 2022 15:30:19 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>> src/java.base/unix/native/libnio/ch/FileChannelImpl.c line 190:
>> 
>>> 188:     off64_t offset = (off64_t)position;
>>> 189:     jlong n;
>>> 190:     if (my_copy_file_range_func) {
>> 
>> I assume this should check if my_copy_file_range_func is NULL.
>
> Yes, it should.

Fixed in 34e035206b5498ee9048afb6fe0702ba59971480.

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

PR: https://git.openjdk.org/jdk/pull/9925


More information about the nio-dev mailing list