RFR(s): 8150460: (linux|bsd|aix)_close.c: file descriptor table may become large or may not work at all

Andrew Haley aph at redhat.com
Wed Mar 2 08:28:55 UTC 2016

On 01/03/16 10:20, Dmitry Samersoff wrote:
> The bug: https://bugs.openjdk.java.net/browse/JDK-8150460
>> The Webrev:
>> http://cr.openjdk.java.net/~stuefe/webrevs/8150460-linux_close-fdTable/webrev.00/webrev/

Why use calloc here?  Surely it makes more sense to use
mmap(MAP_NORESERVE), at least on linux.  We're probably only
going to be using a small number of FDs, and there's no real
point reserving a big block of memory we won't use.


More information about the core-libs-dev mailing list