Small cleanup/improvement to epoll creation

Alan Bateman Alan.Bateman at oracle.com
Wed Apr 8 10:07:13 UTC 2020


On 07/04/2020 21:40, David Lloyd wrote:
> On Tue, Apr 7, 2020 at 2:27 PM Alan Bateman <Alan.Bateman at oracle.com> wrote:
>> On 06/04/2020 17:50, David Lloyd wrote:
>>> Since glibc 2.9 (released at the end of 2008), there has been an
>>> improved function for EPoll creation.  I would suggest the following
>>> cleanup, which uses the "epoll_create1" function to set the FD to
>>> close-on-exec (which is generally just good practice AFAICT, even if
>>> it's not exactly one that has been universally adopted by OpenJDK thus
>>> far).
>> This looks okay, just need to update the exception message too.
> Ah yes, I missed that.
>
>
I've pushed the change to jdk/jdk:
   http://hg.openjdk.java.net/jdk/jdk/rev/fcbb67d1ebeb


More information about the nio-dev mailing list