From cfc75b48500141d3bbe3b4d6f973deb9a613ba51 Mon Sep 17 00:00:00 2001 From: Matt Birkholz Date: Sun, 19 Jul 2015 14:46:34 -0700 Subject: [PATCH] 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. --- src/microcode/pruxffi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.25.1