From 6a0c5f554fca5288a805ee6b0eebe4d4d3f8a07a Mon Sep 17 00:00:00 2001 From: Matt Birkholz Date: Sun, 19 Jul 2015 13:46:27 -0700 Subject: [PATCH] Make uxproc.o state thread-local or single-threaded. Make grabbed_signal_mask pthread-local. (process_table et al are already used serially by the runtime system.) --- src/microcode/uxproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/microcode/uxproc.c b/src/microcode/uxproc.c index 9dc32b367..f48b7a3d3 100644 --- a/src/microcode/uxproc.c +++ b/src/microcode/uxproc.c @@ -117,7 +117,7 @@ block_jc_signals (void) transaction_record_action (tat_always, restore_signal_mask, outside); } -static sigset_t grabbed_signal_mask; +static __thread sigset_t grabbed_signal_mask; static void grab_signal_mask (void) -- 2.25.1