diff options
author | Mike Pall <mike> | 2019-12-08 19:22:37 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2019-12-08 19:22:37 +0100 |
commit | 44382e833a9334c19e47e64e8078a322026e094d (patch) | |
tree | aa91263adedb35fce78f63f0a237c80f1c914b16 | |
parent | 8961a92dd1607108760694af3486b4434602f8be (diff) | |
download | luajit-44382e833a9334c19e47e64e8078a322026e094d.tar.gz luajit-44382e833a9334c19e47e64e8078a322026e094d.tar.bz2 luajit-44382e833a9334c19e47e64e8078a322026e094d.zip |
OSX: Use __thread attribute.
-rw-r--r-- | src/lj_err.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/lj_err.c b/src/lj_err.c index 13a1ded7..6619ad79 100644 --- a/src/lj_err.c +++ b/src/lj_err.c | |||
@@ -290,12 +290,7 @@ LJ_FUNCA int lj_err_unwind_dwarf(int version, int actions, | |||
290 | } | 290 | } |
291 | 291 | ||
292 | #if LJ_UNWIND_EXT | 292 | #if LJ_UNWIND_EXT |
293 | #if LJ_TARGET_OSX || defined(__OpenBSD__) | ||
294 | /* Sorry, no thread safety for OSX. Complain to Apple, not me. */ | ||
295 | static _Unwind_Exception static_uex; | ||
296 | #else | ||
297 | static __thread _Unwind_Exception static_uex; | 293 | static __thread _Unwind_Exception static_uex; |
298 | #endif | ||
299 | 294 | ||
300 | /* Raise DWARF2 exception. */ | 295 | /* Raise DWARF2 exception. */ |
301 | static void err_raise_ext(int errcode) | 296 | static void err_raise_ext(int errcode) |