RFR: 8274113: (fc) Tune FileChannel.transferFrom() [v3]
Brian Burkhalter
bpb at openjdk.java.net
Thu May 12 15:40:53 UTC 2022
On Thu, 12 May 2022 09:12:17 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
>>
>> 8274113: Invert transferXXXSupported
>
> src/java.base/share/classes/sun/nio/ch/FileChannelImpl.java line 541:
>
>> 539: // set this to true if we find out later that it doesn't
>> 540: //
>> 541: private static volatile boolean transferToNotSupported = false;
>
> The motive for inverting these flags was to avoid the volatile write, so you can drop "= false" from both flags now.
Resolved by commit 1ebecd1d07ae6a30a24377df21dd69b364d69d80.
-------------
PR: https://git.openjdk.java.net/jdk/pull/8644
More information about the nio-dev
mailing list