From cc7b5b7e508e0427ab4351799a98dc091fb419fc Mon Sep 17 00:00:00 2001 From: Leonardo de Moura Date: Mon, 11 Nov 2013 18:20:52 -0800 Subject: [PATCH] fix(lua): disable custom allocation for Lua, it is crashing Signed-off-by: Leonardo de Moura --- src/bindings/lua/leanlua_state.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bindings/lua/leanlua_state.cpp b/src/bindings/lua/leanlua_state.cpp index 3acd91267..acfbdf159 100644 --- a/src/bindings/lua/leanlua_state.cpp +++ b/src/bindings/lua/leanlua_state.cpp @@ -71,7 +71,9 @@ struct leanlua_state::imp { std::mutex m_mutex; imp() { - #ifdef LEAN_USE_LUA_NEWSTATE + // TODO(Leo) investigate why TCMALLOC + lua_realloc do not work together + // #ifdef LEAN_USE_LUA_NEWSTATE + #if 0 m_state = lua_newstate(lua_realloc, nullptr); #else m_state = luaL_newstate();