RFR: JDK-8260485: Simplify and unify handler vectors in Posix signal code [v5]
Thomas Stuefe
stuefe at openjdk.java.net
Tue Feb 9 05:35:04 UTC 2021
On Tue, 9 Feb 2021 05:08:40 GMT, David Holmes <dholmes at openjdk.org> wrote:
> Still seems okay.
>
> One query below.
>
> Thanks,
> David
Thank you David.
> src/hotspot/os/posix/signals_posix.cpp line 154:
>
>> 152: static bool check_signals = true;
>> 153: static SavedSignalHandlers expected_handlers;
>> 154: static bool do_check_signal_periodically[NSIG];
>
> Does this need explicit initialization to have false entries?
I think it does not since global static objects are zero-initialized and 0 = false; however, I made the initialization explicit.
-------------
PR: https://git.openjdk.java.net/jdk/pull/2251
More information about the hotspot-dev
mailing list