RFR: 8292562: (fc) Use copy_file_range in FileChannel::transferTo on Linux [v5]
Alan Bateman
alanb at openjdk.org
Wed Aug 24 07:07:34 UTC 2022
On Tue, 23 Aug 2022 17:54:17 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 append parameter; add transferFrom to test
src/java.base/share/classes/sun/nio/ch/FileChannelImpl.java line 576:
> 574: long comp = Blocker.begin();
> 575: try {
> 576: boolean append = fdAccess.getAppend(targetFD);
Can you move this to before the do-while as it does not need to be in the loop or in the Blocker.begin/end.
-------------
PR: https://git.openjdk.org/jdk/pull/9925
More information about the nio-dev
mailing list