RFR: 6980847: (fs) Files.copy needs to be tuned [v6]

Brian Burkhalter bpb at openjdk.org
Wed Jun 22 01:15:22 UTC 2022


On Tue, 21 Jun 2022 09:19:02 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> src/java.base/unix/classes/sun/nio/fs/UnixCopyFile.java line 314:
>> 
>>> 312:                                 Blocker.end(comp);
>>> 313:                             }
>>> 314:                         } while (res == IOStatus.INTERRUPTED);
>> 
>> As `RESTARTABLE` is used in `transfer0()` this loop could go away.
>
>> As `RESTARTABLE` is used in `transfer0()` this loop could go away.
> 
> Does the check for EINTR in transfer0 also go away? It maps it to IOS_INTERRUPTED but the use of RESTARTABLE means this code will never execute.

Yes, as noted [here](https://urldefense.com/v3/__https://github.com/openjdk/jdk/pull/9161*discussion_r900290005__;Iw!!ACWV5N9M2RV99hQ!I_WBavoEHDJAriztsfxp67t4rqz-RftVkKPXaF_vW9U5SEL82_JwnfYQ6AEKnFAzMlGMO8iroE_tyA$ ).

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

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


More information about the nio-dev mailing list