From 2dd52500ab9e7b1a695723d01b481fe87aa88215 Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Mon, 27 Jun 2011 20:14:28 +0200 Subject: Use thread-safe exceptions for external unwinding on x64/GCC. --- src/lj_err.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/lj_err.c b/src/lj_err.c index a8151295..c75552df 100644 --- a/src/lj_err.c +++ b/src/lj_err.c @@ -256,8 +256,7 @@ LJ_FUNCA int lj_err_unwind_dwarf(int version, _Unwind_Action actions, } #if LJ_UNWIND_EXT -/* NYI: this is not thread-safe. */ -static struct _Unwind_Exception static_uex; +static __thread struct _Unwind_Exception static_uex; /* Raise DWARF2 exception. */ static void err_raise_ext(int errcode) -- cgit v1.2.3-55-g6feb