RFR: 8292562: (fc) Use copy_file_range in FileChannel::transferTo on Linux [v5]
Brian Burkhalter
bpb at openjdk.org
Wed Aug 24 14:44:40 UTC 2022
On Wed, 24 Aug 2022 07:05:15 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> 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.
Fixed in e10abeddf7bad5c7ab80c200f78aa3bd5df8916c.
-------------
PR: https://git.openjdk.org/jdk/pull/9925
More information about the nio-dev
mailing list