diff --git a/libs/ardour/ardour/luaproc.h b/libs/ardour/ardour/luaproc.h index e5c6d15735..c855b0f346 100644 --- a/libs/ardour/ardour/luaproc.h +++ b/libs/ardour/ardour/luaproc.h @@ -17,8 +17,9 @@ 675 Mass Ave, Cambridge, MA 02139, USA. */ -//#define WITH_LUAPROC_STATS +#define WITH_LUAPROC_STATS //#define USE_TLSF +#define USE_MALLOC #ifndef __ardour_luaproc_h__ #define __ardour_luaproc_h__ diff --git a/libs/ardour/luaproc.cc b/libs/ardour/luaproc.cc index 40dcf9e8bb..c7f44d9cd4 100644 --- a/libs/ardour/luaproc.cc +++ b/libs/ardour/luaproc.cc @@ -49,6 +49,8 @@ LuaProc::LuaProc (AudioEngine& engine, , _mempool ("LuaProc", 2097152) #ifdef USE_TLSF , lua (lua_newstate (&PBD::TLSF::lalloc, &_mempool)) +#elif define USE_MALLOC + , lua () #else , lua (lua_newstate (&PBD::ReallocPool::lalloc, &_mempool)) #endif @@ -77,6 +79,8 @@ LuaProc::LuaProc (const LuaProc &other) , _mempool ("LuaProc", 2097152) #ifdef USE_TLSF , lua (lua_newstate (&PBD::TLSF::lalloc, &_mempool)) +#elif define USE_MALLOC + , lua () #else , lua (lua_newstate (&PBD::ReallocPool::lalloc, &_mempool)) #endif