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

Alan Bateman alanb at openjdk.org
Tue Aug 23 10:49:32 UTC 2022


On Mon, 22 Aug 2022 18:20:40 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>> Add `copy_file_range(2)` to the native Linux implementation of `FileChannel::transferTo`.
>
> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8292562: Add test of transferTo while target is appending

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.

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

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


More information about the nio-dev mailing list