Lines Matching refs:rml
97 rml::MemPoolPolicy pol(getMallocMem, putMallocMem); in TestPoolReset()
98 rml::MemoryPool *pool; in TestPoolReset()
123 static rml::MemoryPool *pool;
129 static void init(int num, rml::MemoryPool *pl, void **crThread, void **aTerm) { in init()
168 rml::MemoryPool *SharedPoolRun::pool;
175 rml::MemPoolPolicy pol(getMallocMem, putMallocMem); in TestSharedPool()
176 rml::MemoryPool *pool; in TestSharedPool()
224 static rml::MemoryPool **pool;
230 pool = new rml::MemoryPool*[number_of_threads]; in init()
243 rml::MemPoolPolicy pol(CrossThreadGetMem, CrossThreadPutMem); in operator ()()
276 rml::MemoryPool **CrossThreadRun::pool;
297 rml::MemPoolPolicy pol(CrossThreadGetMem, CrossThreadPutMem); in TestTooSmallBuffer()
298 rml::MemoryPool *pool; in TestTooSmallBuffer()
339 rml::MemoryPool *pool;
343 FixedPoolUse(unsigned threads, rml::MemoryPool *p, size_t sz, int it) : in FixedPoolUse()
361 rml::MemoryPool *pool;
363 FixedPoolNomem(utils::SpinBarrier *b, rml::MemoryPool *p) : in FixedPoolNomem()
374 rml::MemoryPool *pool;
376 FixedPoolSomeMem(utils::SpinBarrier *b, rml::MemoryPool *p) : in FixedPoolSomeMem()
387 bool haveEnoughSpace(rml::MemoryPool *pool, size_t sz) in haveEnoughSpace()
401 rml::MemPoolPolicy pol(fixedBufGetMem, nullptr, 0, /*fixedSizePool=*/true, in TestFixedBufferPool()
403 rml::MemoryPool *pool; in TestFixedBufferPool()
494 rml::MemPoolPolicy pol(getGranMem, putGranMem); in TestPoolGranularity()
499 rml::MemoryPool *pool; in TestPoolGranularity()
534 rml::MemPoolPolicy pol(getMemMalloc, putMemFree); in TestPoolKeepTillDestroy()
535 rml::MemoryPool *pool; in TestPoolKeepTillDestroy()
594 rml::MemPoolPolicy pol(getGranMem, putGranMem); in TestEntries()
596 rml::MemoryPool *pool; in TestEntries()
623 bool fail = rml::pool_destroy(nullptr); in TestEntries()
625 fail = rml::pool_reset(nullptr); in TestEntries()
629 rml::MemoryPool *CreateUsablePool(size_t size) in CreateUsablePool()
631 rml::MemoryPool *pool; in CreateUsablePool()
632 rml::MemPoolPolicy okPolicy(getMemMalloc, putMemFree); in CreateUsablePool()
635 rml::MemPoolError res = pool_create_v1(0, &okPolicy, &pool); in CreateUsablePool()
636 if (res != rml::POOL_OK) { in CreateUsablePool()
659 rml::MemoryPool *pools[MAX_POOLS]; in CheckPoolLeaks()
667 rml::MemoryPool *p = CreateUsablePool(1024); in CheckPoolLeaks()
691 rml::MemPoolPolicy nullPolicy(nullptr, putMemFree), in TestPoolCreation()
694 rml::MemoryPool *pool; in TestPoolCreation()
696 rml::MemPoolError res = pool_create_v1(0, &nullPolicy, &pool); in TestPoolCreation()
697 REQUIRE_MESSAGE(res==rml::INVALID_POLICY, "pool with empty pAlloc can't be created"); in TestPoolCreation()
699 REQUIRE_MESSAGE(res==rml::INVALID_POLICY, "pool with empty pFree can't be created"); in TestPoolCreation()
702 REQUIRE(res==rml::POOL_OK); in TestPoolCreation()
716 rml::MemoryPool *pool;
722 rml::MemoryPool** const pools;
725 PoolIdentityCheck(rml::MemoryPool** p, AllocatedObject** o) : pools(p), objs(o) {} in PoolIdentityCheck()
729 rml::MemoryPool *act_pool = rml::pool_identify(objs[id]); in operator ()()
735 act_pool = rml::pool_identify(o); in operator ()()
751 rml::MemPoolPolicy pol(fixedBufGetMem, nullptr, 0, /*fixedSizePool=*/true, in TestPoolDetection()
753 rml::MemoryPool *pools[POOLS]; in TestPoolDetection()
769 rml::MemoryPool *p = rml::pool_identify(objs[i]); in TestPoolDetection()
782 rml::MemPoolPolicy pol(getMemMalloc, putMemFree); in TestLazyBootstrap()
786 rml::MemoryPool *pool = CreateUsablePool(sizes[i]); in TestLazyBootstrap()
794 rml::MemoryPool *pool;
797 NoLeakOnDestroyRun(rml::MemoryPool *p, utils::SpinBarrier *b) : pool(p), barrier(b) {} in NoLeakOnDestroyRun()
817 rml::MemPoolPolicy pol(getMallocMem, putMallocMem); in TestNoLeakOnDestroy()
819 rml::MemoryPool *pool; in TestNoLeakOnDestroy()
839 rml::MemPoolPolicy pol(getMallocMem, putMallocMemError); in TestDestroyFailed()
840 rml::MemoryPool *pool; in TestDestroyFailed()
850 rml::MemoryPool *pool = CreateUsablePool(1024); in TestPoolMSize()