RFR: 8291060: OPEN_MAX is no longer the max limit on macOS >= 10.6 for RLIMIT_NOFILE [v2]
Gerard Ziemski
gziemski at openjdk.org
Wed Jul 27 15:53:06 UTC 2022
> On macOS we are currently using setrlimit(RLIMIT_NOFILE, OPEN_MAX) for MaxFDLimit (it's ON by default), but we can go higher than that.
>
> My own testing on macOS 12.3.1 reveals that we can ask for setrlimit(RLIMIT_NOFILE, RLIM_INFINITY), though in reality we will get back 32765, which is still more than OPEN_MAX (10240)
Gerard Ziemski has updated the pull request incrementally with one additional commit since the last revision:
implement David's feedback
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/9650/files
- new: https://git.openjdk.org/jdk/pull/9650/files/7c5a4c4f..1338eb4b
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=9650&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=9650&range=00-01
Stats: 7 lines in 1 file changed: 2 ins; 2 del; 3 mod
Patch: https://git.openjdk.org/jdk/pull/9650.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/9650/head:pull/9650
PR: https://git.openjdk.org/jdk/pull/9650
More information about the hotspot-runtime-dev
mailing list