Make error.o state thread-local.
authorMatt Birkholz <puck@birchwood-abbey.net>
Tue, 21 Jul 2015 07:35:11 +0000 (00:35 -0700)
committerMatt Birkholz <puck@birchwood-abbey.net>
Thu, 26 Nov 2015 08:09:46 +0000 (01:09 -0700)
src/microcode/error.c

index 044ee3b7cb718a557075c73dfc4fd3310330a622..013486e51875f0df275706de8bc35b2b26f2bfad 100644 (file)
@@ -44,9 +44,9 @@ struct restart_record
   struct condition_restart contents;
 };
 
-static unsigned long next_condition_type_index;
-static struct handler_record * current_handler_record;
-static struct restart_record * current_restart_record;
+static __thread unsigned long next_condition_type_index;
+static __thread struct handler_record * current_handler_record;
+static __thread struct restart_record * current_restart_record;
 
 void
 initialize_condition_system (void)