RFR: 8237830: support O_CLOEXEC in os::open on other OS than Linux
Baesken, Matthias
matthias.baesken at sap.com
Tue Jan 28 08:52:38 UTC 2020
Hi David , on AIX I see O_CLOEXEC since AIX 7.1. Seems it was not supported in 6.1, at least I cannot find it there .
Regarding macOS, this thread
https://groups.google.com/forum/#!topic/golang-dev/7mmT7o9GYb4
claims it is there since 10.7 .
Maybe someone can provide more detailed information ?
Best regards, Matthias
>
> Hi Matthias,
> On 27/01/2020 10:47 pm, Baesken, Matthias wrote:
> > Hello, please review my change that adds O_CLOEXEC in HS os::open for
> AIX and BSD/macOS .
>
> Do we know when O_CLOEXEC support was added to those platforms? Do
> we
> know that the flag is simply ignored if used on a platform prior to that
> support existing?
>
> Thanks,
> David
>
> > Change
> >
> > https://bugs.openjdk.java.net/browse/JDK-8043780
> >
> > introduced the usage of O_CLOEXEC in os::open on Linux.
> >
> > We might do the same on other UNIX OS for example BSD/Mac and AIX
> (AIX 7.X has O_CLOEXEC).
> >
> >
> > Bug/webrev :
> >
> > https://bugs.openjdk.java.net/browse/JDK-8237830
> >
> > http://cr.openjdk.java.net/~mbaesken/webrevs/8237830.0/
> >
> > Thanks, Matthias
> >
> >
More information about the hotspot-dev
mailing list