RFR: 8334719: (se) Deferred close of SelectableChannel may result in a Selector doing the final close before concurrent I/O on channel has completed [v2]

Jaikiran Pai jpai at openjdk.org
Tue Jun 25 15:57:10 UTC 2024


On Tue, 25 Jun 2024 14:57:16 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

> The new patched `InetSocketAddress` is probably going to be used by all other tests in the `test/jdk/java/nio/channels/Selector/` directory.

I was under the impression that it only gets used if the test explicitly states `@compile/module=java.base java/net/InetSocketAddress.java` in its test definition and then jtreg would add the following to the test launch command:


--patch-module java.base=jdk/JTwork/classes/0/java/nio/channels/Selector/DeferredCloseTest.d/patches/java.base


> or even safer move the new test in its own directory alogside with the patched InetSocketAddress.

I think this is safer. I'll follow this and create a  new test directory under the existing `Selector` one.

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

PR Comment: https://git.openjdk.org/jdk/pull/19879#issuecomment-2189330300


More information about the nio-dev mailing list