From ccb6bf1b35338f7a2a069c7a9cb52229bc56f070 Mon Sep 17 00:00:00 2001 From: Matt Birkholz Date: Sun, 19 Jul 2015 10:39:56 -0700 Subject: [PATCH] Make bkpt.o state thread-local. --- src/microcode/bkpt.c | 4 ++-- src/microcode/bkpt.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/microcode/bkpt.c b/src/microcode/bkpt.c index 973f1e356..635b8e5d0 100644 --- a/src/microcode/bkpt.c +++ b/src/microcode/bkpt.c @@ -33,11 +33,11 @@ USA. #define sp_nil ((struct sp_record *) 0) -sp_record_list SP_List = sp_nil; +__thread sp_record_list SP_List = sp_nil; extern bool Add_a_Pop_Return_Breakpoint (SCHEME_OBJECT *); -static struct sp_record One_Before = +static __thread struct sp_record One_Before = { ((SCHEME_OBJECT *) 0), sp_nil diff --git a/src/microcode/bkpt.h b/src/microcode/bkpt.h index 00104aa04..597cf35c5 100644 --- a/src/microcode/bkpt.h +++ b/src/microcode/bkpt.h @@ -35,7 +35,7 @@ struct sp_record }; typedef struct sp_record * sp_record_list; -extern sp_record_list SP_List; +extern __thread sp_record_list SP_List; #define DEBUG_MAXSLOTS 100 -- 2.25.1