From e1336942b3a6d0984bb2ff21a57cc0ba7666ef19 Mon Sep 17 00:00:00 2001 From: Matt Birkholz Date: Sun, 19 Jul 2015 14:51:12 -0700 Subject: [PATCH] Make cmpint.o state thread-local. Make linking_cc_block_p thread-local. The rest of this module's variables are initialized by the ASM_INIT_HOOK, part of compiler_reset, which is called during compiler_initialize (the singularly threaded boot) or LOAD-BAND (a GC wait). --- src/microcode/cmpint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/microcode/cmpint.c b/src/microcode/cmpint.c index 2e897f7c3..e1709b3b5 100644 --- a/src/microcode/cmpint.c +++ b/src/microcode/cmpint.c @@ -112,7 +112,7 @@ SCHEME_OBJECT compiler_utilities; SCHEME_OBJECT return_to_interpreter; SCHEME_OBJECT reflect_to_interface; -static bool linking_cc_block_p = 0; +static __thread bool linking_cc_block_p = 0; static SCHEME_OBJECT make_compiler_utilities (void); static void open_stack_gap (unsigned long, unsigned long); -- 2.25.1