RFR: 8323782: Race: Thread::interrupt vs. AbstractInterruptibleChannel.begin [v2]
Alan Bateman
alanb at openjdk.org
Fri Jan 19 08:04:28 UTC 2024
On Fri, 19 Jan 2024 01:56:06 GMT, David Holmes <dholmes at openjdk.org> wrote:
> Yep my bad on the VM side of things - no change there. But in the nioBlocker case doesn't this inherently make things more racy? Now maybe those races are allowed, but this might lead to a change in behaviour.
I/O threads always check their interrupt status after installing the nioBlocker. The interruptible and the I/O thread (may several) may race calling postInterrupt but that is okay.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/17444#discussion_r1458533890
More information about the core-libs-dev
mailing list