RFR: 8291060: OPEN_MAX is no longer the max limit on macOS >= 10.6 for RLIMIT_NOFILE [v2]
Daniel D. Daugherty
dcubed at openjdk.org
Thu Jul 28 19:46:20 UTC 2022
On Wed, 27 Jul 2022 15:53:06 GMT, Gerard Ziemski <gziemski at openjdk.org> wrote:
>> 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
Thumbs up.
-------------
Marked as reviewed by dcubed (Reviewer).
PR: https://git.openjdk.org/jdk/pull/9650
More information about the hotspot-runtime-dev
mailing list