]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
OSX: Use __thread attribute.
authorMike Pall <mike>
Sun, 8 Dec 2019 18:22:37 +0000 (19:22 +0100)
committerMike Pall <mike>
Sun, 8 Dec 2019 18:22:37 +0000 (19:22 +0100)
src/lj_err.c

index 13a1ded7ce8b6a7858ee2ecd6dca972935cd9063..6619ad79910ccac52602817add6783ac1f85f2e3 100644 (file)
@@ -290,12 +290,7 @@ LJ_FUNCA int lj_err_unwind_dwarf(int version, int actions,
 }
 
 #if LJ_UNWIND_EXT
-#if LJ_TARGET_OSX || defined(__OpenBSD__)
-/* Sorry, no thread safety for OSX. Complain to Apple, not me. */
-static _Unwind_Exception static_uex;
-#else
 static __thread _Unwind_Exception static_uex;
-#endif
 
 /* Raise DWARF2 exception. */
 static void err_raise_ext(int errcode)