RFR: 8291067: macOS should use O_CLOEXEC instead of FD_CLOEXEC

Thomas Stuefe stuefe at openjdk.org
Fri Aug 26 16:56:00 UTC 2022


On Wed, 27 Jul 2022 19:19:44 GMT, Gerard Ziemski <gziemski at openjdk.org> wrote:

> O_CLOEXEC is also available on macOS (__DARWIN_C_LEVEL >= 200809L), so use it same as on linux.

What you *could* do and what would be helpful is a very primitive gtest that tests that files opened with os::open are correctly tagged with FD_CLOEXEC.

-------------

PR: https://git.openjdk.org/jdk/pull/9663


More information about the hotspot-runtime-dev mailing list