fix(lua): disable custom allocation for Lua, it is crashing
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
7d49df3985
commit
cc7b5b7e50
1 changed files with 3 additions and 1 deletions
|
@ -71,7 +71,9 @@ struct leanlua_state::imp {
|
||||||
std::mutex m_mutex;
|
std::mutex m_mutex;
|
||||||
|
|
||||||
imp() {
|
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);
|
m_state = lua_newstate(lua_realloc, nullptr);
|
||||||
#else
|
#else
|
||||||
m_state = luaL_newstate();
|
m_state = luaL_newstate();
|
||||||
|
|
Loading…
Reference in a new issue