RFR: 8291067: macOS should use O_CLOEXEC instead of FD_CLOEXEC

Gerard Ziemski gziemski at openjdk.org
Tue Sep 27 16:26:29 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.

I like that.

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

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


More information about the hotspot-runtime-dev mailing list