RFR: 8238161: use os::fopen in HS code where possible
David Holmes
david.holmes at oracle.com
Thu Jan 30 23:18:34 UTC 2020
Hi Matthias,
Does close-on-exec have any meaning when applied to /proc filesystem ??
Thanks,
David
On 31/01/2020 1:47 am, Baesken, Matthias wrote:
> Please review this change which adjusts a number of calls (in HS code) from using fopen to os::fopen .
>
> There exists for some time a function os::fopen in HS code . This function sets "close-on-exec" flags (when possible) to the opened filedescriptor.
> It might have some benefits to use os::fopen more in HS code, currently there are still quite a few calls directly to fopen .
> (however there are also already a number of calls to os::fopen e.g. some calls in os_linux.cpp /os_solaris.cpp should already look up os::fopen , and logFileOutput.cpp uses os::fopen directly )
>
>
> see also the thread
> https://mail.openjdk.java.net/pipermail/hotspot-dev/2020-January/040641.html
> on hotspot-dev about the topic.
>
>
>
> Bug/webrev :
>
> https://bugs.openjdk.java.net/browse/JDK-8238161
>
> http://cr.openjdk.java.net/~mbaesken/webrevs/8238161.0/
>
>
> Thanks, Matthias
>
More information about the hotspot-dev
mailing list