8234805: (dc) Remove JNI upcall from DatagramChannel.receive implementation
Alan Bateman
Alan.Bateman at oracle.com
Tue Nov 26 15:27:26 UTC 2019
On 26/11/2019 15:12, Daniel Fuchs wrote:
>
> Sorry - but both method have this assert:
>
> 632 assert readLock.isHeldByCurrentThread() && isBlocking();
>
> and the only difference I can see is that one will block indefinitely
> while the other has a timeout.
Right, both methods support the socket adpator, hence blocking mode. The
first blocks indefinitely so it has to handle EINTR, the second is the
timed receive case so has to temporarily configure the socket to be
non-blocking.
-Alan
More information about the nio-dev
mailing list