13
0

and plain realloc (not mlocked) as baseline

This commit is contained in:
Robin Gareus 2016-07-19 15:34:06 +02:00
parent cf89f645ab
commit ae2ce3053f
2 changed files with 6 additions and 1 deletions

View File

@ -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__

View File

@ -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