Use thread-safe exceptions for external unwinding on x64/GCC.

This commit is contained in:
Mike Pall 2011-06-27 20:14:28 +02:00
parent db22ce2ba8
commit 2dd52500ab

View File

@ -256,8 +256,7 @@ LJ_FUNCA int lj_err_unwind_dwarf(int version, _Unwind_Action actions,
} }
#if LJ_UNWIND_EXT #if LJ_UNWIND_EXT
/* NYI: this is not thread-safe. */ static __thread struct _Unwind_Exception static_uex;
static struct _Unwind_Exception static_uex;
/* Raise DWARF2 exception. */ /* Raise DWARF2 exception. */
static void err_raise_ext(int errcode) static void err_raise_ext(int errcode)