Home
last modified time | relevance | path

Searched refs:fixedPool (Results 1 – 6 of 6) sorted by relevance

/oneTBB/test/tbbmalloc/
H A Dtest_scalable_allocator.cpp151 FixedPool fixedPool(buf, sz); in TestSmallFixedSizePool() local
153 rml::MemPoolError ret = pool_create_v1((intptr_t)&fixedPool, &pol, &pool); in TestSmallFixedSizePool()
224 tbb::fixed_pool fixedPool(buffer, sizeof(buffer));
226 tbb::memory_pool_allocator<char, tbb::fixed_pool> fixedPoolAllocator(fixedPool);
H A Dtest_malloc_whitebox.cpp449 rml::MemoryPool *fixedPool; in TestPools() local
451 pool_create_v1(0, &pol, &fixedPool); in TestPools()
482 void *smallObj = pool_malloc(fixedPool, 10); in TestPools()
485 void *ptr = pool_malloc(fixedPool, 1024); in TestPools()
488 void *largeObj = pool_malloc(fixedPool, minLargeObjectSize); in TestPools()
491 ptr = pool_malloc(fixedPool, minLargeObjectSize); in TestPools()
494 pool_malloc(fixedPool, 10*minLargeObjectSize); // no leak for unsuccessful allocations in TestPools()
495 pool_free(fixedPool, smallObj); in TestPools()
496 pool_free(fixedPool, largeObj); in TestPools()
502 pool_destroy(fixedPool); in TestPools()
/oneTBB/src/tbbmalloc/
H A Dbackend.cpp89 … if (extMemPool->fixedPool && bootsrapMemDone == bootsrapMemStatus.load(std::memory_order_acquire)) in allocRawMem()
143 MALLOC_ASSERT(!extMemPool->fixedPool, "No free for fixed-size pools."); in freeRawMem()
580 MALLOC_ASSERT(extMemPool->fixedPool, in splitBlock()
800 int lockedBinsThreshold = extMemPool->fixedPool || size>=maxBinned_SmallPage? 0 : 2; in genericGetBlock()
817 if (!block && extMemPool->fixedPool) in genericGetBlock()
823 if (!block && extMemPool->fixedPool) in genericGetBlock()
1145 && !extMemPool->fixedPool) { in coalescAndPutList()
1158 bool toAligned = extMemPool->fixedPool ? toAlignedBin(toRet, currSz) : toRet->slabAligned; in coalescAndPutList()
1349 if (!extMemPool->fixedPool) in addNewRegion()
1358 if (!extMemPool->fixedPool) in addNewRegion()
H A Dtbbmalloc_internal.h576 fixedPool;
583 size_t granularity, bool keepAllMemory, bool fixedPool);
H A Dfrontend.cpp1075 bool keepAllMemory, bool fixedPool) in init() argument
1082 this->fixedPool = fixedPool; in init()
1098 policy->keepAllMemory, policy->fixedPool)) in init()
2704 || !(policy->fixedPool || policy->pFree)) { in pool_create_v1()
/oneTBB/include/oneapi/tbb/
H A Dscalable_allocator.h154 unsigned fixedPool : 1, member
163 fixedPool(fixedPool_), keepAllMemory(keepAllMemory_), in pAlloc()