From 0a74b1e24e05f44be37f57c73bc0ca95bd942bda Mon Sep 17 00:00:00 2001 From: Matt Birkholz Date: Fri, 5 Dec 2014 17:48:49 -0700 Subject: [PATCH] smp: share: wind.o --- README.txt | 10 ++++++---- src/microcode/wind.c | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README.txt b/README.txt index 127ac5681..73518f38a 100644 --- a/README.txt +++ b/README.txt @@ -584,10 +584,12 @@ command line. The remaining 12 belong to the 7 microcode modules and vector.o: wind.o: - 00000024 b current_winding_record - 00000000 b dstack - 00000028 B dstack_position - 00000000 b save_binding_location + 00000024 b current_winding_record __thread + 00000000 b dstack __thread + 00000028 B dstack_position __thread + 00000000 b save_binding_location __thread + + OK. All state is thread-local now. prosenv.o: diff --git a/src/microcode/wind.c b/src/microcode/wind.c index 33f29ad12..b47e3c8d1 100644 --- a/src/microcode/wind.c +++ b/src/microcode/wind.c @@ -172,7 +172,7 @@ undo_binding (void * environment) (((struct binding_record *) environment) -> value); } -static void ** save_binding_location; +static __thread void ** save_binding_location; static void save_binding (void * environment) -- 2.25.1