RFR: 8247614: java/nio/channels/DatagramChannel/Connect.java timed out

Alan Bateman alanb at openjdk.java.net
Thu Oct 15 14:25:12 UTC 2020


On Thu, 15 Oct 2020 14:05:15 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

>> test/jdk/java/nio/channels/DatagramChannel/Connect.java line 54:
>> 
>>> 52:
>>> 53:     static void invoke(Runnable reader, Runnable writer) throws CompletionException {
>>> 54:         CompletableFuture<Void> f1 = CompletableFuture.runAsync(writer);
>> 
>> These run the reader and write in the common pool, are you sure that is what you want?
>
>> These run the reader and write in the common pool, are you sure that is what you want?
> 
> It shouldn't matter since there's no security manager. Are you worried that the common pool may not have enough threads
> available to run these two tasks concurrently?

These are blocking tasks. It's easy to create a thread pool in this test.

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

PR: https://git.openjdk.java.net/jdk/pull/679


More information about the nio-dev mailing list