JDK-8300055 : [BACKOUT] OPEN_MAX is no longer the max limit on macOS >= 10.6 for RLIMIT_NOFILE
  • Type: Sub-task
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-01-12
  • Updated: 2023-01-14
  • Resolved: 2023-01-13
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 20 JDK 21
20 masterFixed 21Fixed
Related Reports
Relates :  
Relates :  
Description
setrlimit(RLIMIT_NOFILE, RLIM_INFINITY) appears to cause serious problems for ksh (shell) due to a bug in ksh itself, however, this is still a regression from user's point of view and needs to be fixed.

The easiest fix at this moment is simply to back out the original fix, which triggers the issue in ksh.

I tested the original change with the default terminal on Mac, i.e. "zsh" and did not think to try the other ones.
Comments
Changeset: e0081462 Author: Gerard Ziemski <gziemski@openjdk.org> Date: 2023-01-13 15:38:49 +0000 URL: https://git.openjdk.org/jdk20/commit/e0081462f456138b818a596099e2598cbe1648e0
13-01-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk20/pull/102 Date: 2023-01-12 20:06:09 +0000
12-01-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/11974 Date: 2023-01-12 17:09:40 +0000
12-01-2023