aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Pall <mike>2011-06-27 20:14:28 +0200
committerMike Pall <mike>2011-06-27 20:14:28 +0200
commit2dd52500ab9e7b1a695723d01b481fe87aa88215 (patch)
tree29834701bb003d9bb656c680b808de4bd6d4e5e6 /src
parentdb22ce2ba887ecd85f1968f2a51cf5984db5ff79 (diff)
downloadluajit-2dd52500ab9e7b1a695723d01b481fe87aa88215.tar.gz
luajit-2dd52500ab9e7b1a695723d01b481fe87aa88215.tar.bz2
luajit-2dd52500ab9e7b1a695723d01b481fe87aa88215.zip
Use thread-safe exceptions for external unwinding on x64/GCC.
Diffstat (limited to 'src')
-rw-r--r--src/lj_err.c3
1 files changed, 1 insertions, 2 deletions
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,
256} 256}
257 257
258#if LJ_UNWIND_EXT 258#if LJ_UNWIND_EXT
259/* NYI: this is not thread-safe. */ 259static __thread struct _Unwind_Exception static_uex;
260static struct _Unwind_Exception static_uex;
261 260
262/* Raise DWARF2 exception. */ 261/* Raise DWARF2 exception. */
263static void err_raise_ext(int errcode) 262static void err_raise_ext(int errcode)