From: Matt Birkholz Date: Sun, 19 Jul 2015 21:46:34 +0000 (-0700) Subject: Make pruxffi.o state thread-local. X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=cfc75b48500141d3bbe3b4d6f973deb9a613ba51;p=mit-scheme.git Make pruxffi.o state thread-local. Declare cstach_depth thread-local. The primitive caches might be filled multiple times concurrently but they are read and written atomically, so no harm done. --- diff --git a/src/microcode/pruxffi.c b/src/microcode/pruxffi.c index 7043f7b88..81ba6d4d4 100644 --- a/src/microcode/pruxffi.c +++ b/src/microcode/pruxffi.c @@ -402,7 +402,7 @@ cstack_pop (char * tos) } /* Number CStack frames, to detect slips. */ -int cstack_depth = 0; +__thread int cstack_depth = 0; /* Callouts */