RFR: 8211851: (ch) java/nio/channels/AsynchronousSocketChannel/StressLoopback.java times out (aix)

Joachim Kern jkern at openjdk.org
Mon Dec 9 14:53:41 UTC 2024


On Mon, 9 Dec 2024 10:27:38 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> Test /jdk/java/nio/channels/AsynchronousSocketChannel/StressLoopback.java times out on aix.
>
> src/java.base/aix/classes/sun/nio/ch/Pollset.java line 125:
> 
>> 123:     public static native void drain(int fd) throws IOException;
>> 124:     public static native void close0(int fd);
>> 125:     public static native void configureBlocking(int fd, boolean blocking) throws IOException;
> 
> I assume you don't need this, instead use IOUtil.configureBlocking(fd, blocking).

I tried this first, but `IOUtil.configureBlocking(fd, blocking)` needs a `FileDescriptor` object instead of an `int`:
`public static native void configureBlocking(FileDescriptor fd, boolean blocking)`
And I did not find any public FileDescriptor constructor taking an `int`.
I would be happy for any hint to avoid this double implementation of configureBlocking

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

PR Review Comment: https://git.openjdk.org/jdk/pull/22633#discussion_r1876117543


More information about the nio-dev mailing list