Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/facebook/luaffifb.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Gross <colesbury@gmail.com>2015-05-06 02:04:15 +0300
committerSam Gross <colesbury@gmail.com>2015-05-06 02:04:15 +0300
commit5fd52bbe34015ad32b4b9720801df2d8ed594df5 (patch)
tree42ce497cab3df196b3f6fd4a88e62087681be9da
parent5520643c2750d2adac858392c94da9d02fe510c6 (diff)
TEMP: Don't free the JIT-compiled binding code.
The order in which finalizers are callled on exit in Lua can cause the binding code to be freed before the last use of the function.
-rw-r--r--ffi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ffi.c b/ffi.c
index cbd39d0..7fca4f9 100644
--- a/ffi.c
+++ b/ffi.c
@@ -1418,7 +1418,8 @@ static int cdata_gc(lua_State* L)
static int callback_free(lua_State* L)
{
cfunction* p = (cfunction*) lua_touserdata(L, 1);
- free_code(get_jit(L), L, *p);
+ // FIXME: temporarily disabled to prevent SIGTRAP on exit
+ // free_code(get_jit(L), L, *p);
return 0;
}