8223353: (ch) Change channel close implementation to not wait for I/O threads
Alan Bateman
Alan.Bateman at oracle.com
Mon May 6 12:22:45 UTC 2019
On 06/05/2019 13:18, Florian Weimer wrote:
> :
> But that descriptor consumes a slot in the descriptor table, which is an
> extremely scarce resource. It does not matter that the file description
> used magic I/O inhibition is shared and therefore consumes very little
> kernel resources. The original file descriptor is still occupied until
> the lazy close completes and cannot be reused for creating new channels.
>
Sure, but that is exactly how it works since JDK 1.4. If you have a JDK
8 build handy you can trace the syscalls and see what I mean. It's
exactly the same with classic networking too (also since JDK 1.4).
-Alan
More information about the nio-dev
mailing list