Просмотр исходного кода

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

Mike Pall 14 лет назад
Родитель
Сommit
2dd52500ab
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      src/lj_err.c

+ 1 - 2
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)