diff options
author | Sam Gross <colesbury@gmail.com> | 2015-05-06 02:04:15 +0300 |
---|---|---|
committer | Sam Gross <colesbury@gmail.com> | 2015-05-06 02:04:15 +0300 |
commit | 5fd52bbe34015ad32b4b9720801df2d8ed594df5 (patch) | |
tree | 42ce497cab3df196b3f6fd4a88e62087681be9da | |
parent | 5520643c2750d2adac858392c94da9d02fe510c6 (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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } |