diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-12-25 23:36:25 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-12-26 09:39:53 +0900 |
commit | 292230cbf926e9892596ea37fd4567f0c49ab73c (patch) | |
tree | c16b63cb64dc6c7ee6c1f2a118fbd968198c9438 /gc.c | |
parent | 73cd4951de20bf989747013b1e62a202f12ac2d2 (diff) |
Fixed leaked global symbols
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4003
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -4640,7 +4640,7 @@ static void read_barrier_handler(intptr_t address) } #if defined(_WIN32) -LPTOP_LEVEL_EXCEPTION_FILTER old_handler; +static LPTOP_LEVEL_EXCEPTION_FILTER old_handler; typedef void (*signal_handler)(int); static signal_handler old_sigsegv_handler; @@ -4659,13 +4659,15 @@ static LONG WINAPI read_barrier_signal(EXCEPTION_POINTERS * info) } } -static void uninstall_handlers(void) +static void +uninstall_handlers(void) { signal(SIGSEGV, old_sigsegv_handler); SetUnhandledExceptionFilter(old_handler); } -static void install_handlers(void) +static void +install_handlers(void) { /* Remove SEGV handler so that the Unhandled Exception Filter handles it */ old_sigsegv_handler = signal(SIGSEGV, NULL); @@ -4701,13 +4703,15 @@ read_barrier_signal(int sig, siginfo_t * info, void * data) sigprocmask(SIG_SETMASK, &prev_set, NULL); } -static void uninstall_handlers(void) +static void +uninstall_handlers(void) { sigaction(SIGBUS, &old_sigbus_handler, NULL); sigaction(SIGSEGV, &old_sigsegv_handler, NULL); } -static void install_handlers(void) +static void +install_handlers(void) { struct sigaction action; memset(&action, 0, sizeof(struct sigaction)); |