and plain realloc (not mlocked) as baseline
This commit is contained in:
parent
cf89f645ab
commit
ae2ce3053f
@ -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__
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user