-
Bug
-
Resolution: Fixed
-
P1
-
7u25, 8, 9
-
b04
-
generic
-
os_x
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8051251 | 8u40 | Chris Hegarty | P1 | Resolved | Fixed | b01 |
JDK-8045527 | 8u25 | Chris Hegarty | P1 | Resolved | Fixed | b01 |
JDK-8036554 | 8u20 | Chris Hegarty | P1 | Closed | Fixed | b05 |
JDK-8039012 | 8u11 | Chris Hegarty | P1 | Closed | Fixed | b03 |
JDK-8053501 | emb-8u26 | Chris Hegarty | P1 | Resolved | Fixed | b17 |
JDK-8036555 | 7u80 | Sean Coffey | P1 | Resolved | Fixed | b01 |
JDK-8060971 | 7u79 | Chris Hegarty | P1 | Resolved | Fixed | b01 |
JDK-8057441 | 7u76 | Chris Hegarty | P1 | Resolved | Fixed | b01 |
JDK-8038046 | 7u65 | Chris Hegarty | P1 | Resolved | Fixed | b05 |
JDK-8037801 | 7u60 | Chris Hegarty | P1 | Closed | Fixed | b12 |
Snippet from man select(2):
"Although the provision of getdtablesize(2) was intended to allow user programs to be written
independent of the kernel limit on the number of open files, the dimension of a sufficiently
large bit field for select remains a problem. The default size FD_SETSIZE (currently 1024) is
somewhat smaller than the current kernel limit to the number of open files. However, in order
to accommodate programs which might potentially use a larger number of open files with select,
it is possible to increase this size within a program by providing a larger definition of
FD_SETSIZE before the inclusion of <sys/types.h>.
Either:
1) FD_SETSIZE needs to be set to a larger value, but what value, the kernel limit, or other?
This is wasteful for most typical apps that don't use large numbers of file descriptors. Or,
2) If fd is greater than 1024, then an appropriate amount of memory could be allocated and cast
to an fd_set. The FD_SET macro will write past FD_SETSIZE.
Option 2 above seems most reasonable. Will proceed with making the appropriate changes.
- backported by
-
JDK-8036555 Better memory allocation for file descriptors greater than 1024 on macosx
- Resolved
-
JDK-8038046 Better memory allocation for file descriptors greater than 1024 on macosx
- Resolved
-
JDK-8045527 Better memory allocation for file descriptors greater than 1024 on macosx
- Resolved
-
JDK-8051251 Better memory allocation for file descriptors greater than 1024 on macosx
- Resolved
-
JDK-8053501 Better memory allocation for file descriptors greater than 1024 on macosx
- Resolved
-
JDK-8057441 Better memory allocation for file descriptors greater than 1024 on macosx
- Resolved
-
JDK-8060971 Better memory allocation for file descriptors greater than 1024 on macosx
- Resolved
-
JDK-8036554 Better memory allocation for file descriptors greater than 1024 on macosx
- Closed
-
JDK-8037801 Better memory allocation for file descriptors greater than 1024 on macosx
- Closed
-
JDK-8039012 Better memory allocation for file descriptors greater than 1024 on macosx
- Closed
- duplicates
-
JDK-8028313 SEGV during java.net.SocketInputStream.socketread0 on mac osx
- Closed
- relates to
-
JDK-8036584 Review comments from 8035897
- Closed
-
JDK-8021820 Number of opened files used in select() is limited to 1024 [macosx]
- Closed