RFR: 8265261: java/nio/file/Files/InterruptCopy.java fails with java.lang.RuntimeException: Copy was not interrupted
Brian Burkhalter
bpb at openjdk.java.net
Wed Aug 18 15:58:22 UTC 2021
On Wed, 18 Aug 2021 02:32:53 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
> This proposal suggests to change the timing of testing whether a file copy is terminated by an interrupt.
It did indeed look as if the copy starts before the interrupter thread but that is not guaranteed. I do not know about the difference between agentvm and othervm. Another alternative would be to repeatedly interrupt at a fixed rate with zero delay but I don't know whether the original intent was to have only one interrupt.
-------------
PR: https://git.openjdk.java.net/jdk/pull/5154
More information about the nio-dev
mailing list