RFR: 8291067: macOS should use O_CLOEXEC instead of FD_CLOEXEC

Thomas Stuefe stuefe at openjdk.org
Fri Aug 26 16:47:12 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.

src/hotspot/os/bsd/os_bsd.cpp line 2239:

> 2237:       return -1;
> 2238:     }
> 2239:   }

Why is this needed? This is a behavioral change that has nothing to do with the bug description.

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

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


More information about the hotspot-runtime-dev mailing list