RFR: JDK-8273815: move have_special_privileges to os_posix for POSIX platforms [v2]
Thomas Stuefe
stuefe at openjdk.java.net
Fri Sep 17 15:48:44 UTC 2021
On Fri, 17 Sep 2021 15:21:51 GMT, Martin Doerr <mdoerr at openjdk.org> wrote:
>> Hi Thomas, thanks for the hint - I adjusted the coding.
>> Best regards, Matthias
>
> A static bool which gets evaluated on every call makes no sense! Oh, wait! I think it's ok. I was only wondering why `privileges` should get initialized when `have_special_privileges()` is called for the first time and not during static initialization of the class. But it's at least equivalent to what we had before.
Now I am confused, what class? This is a global function with a function-local static variable.
-------------
PR: https://git.openjdk.java.net/jdk/pull/5540
More information about the hotspot-runtime-dev
mailing list