Lines Matching refs:extMemPool

88     if (extMemPool->userPool()) {  in allocRawMem()
89 … if (extMemPool->fixedPool && bootsrapMemDone == bootsrapMemStatus.load(std::memory_order_acquire)) in allocRawMem()
95 allocSize = alignUpGeneric(size, extMemPool->granularity); in allocRawMem()
96 res = (*extMemPool->rawAlloc)(extMemPool->poolId, allocSize); in allocRawMem()
99 … size_t pageSize = hugePages.isEnabled ? hugePages.getGranularity() : extMemPool->granularity; in allocRawMem()
122 if (!extMemPool->userPool()) in allocRawMem()
142 if (extMemPool->userPool()) { in freeRawMem()
143 MALLOC_ASSERT(!extMemPool->fixedPool, "No free for fixed-size pools."); in freeRawMem()
144 fail = (*extMemPool->rawFree)(extMemPool->poolId, object, size); in freeRawMem()
324 auto pool = backend->extMemPool; in waitTillBlockReleased()
580 MALLOC_ASSERT(extMemPool->fixedPool, in splitBlock()
641 if (extMemPool->hardCachesCleanup(false)) in releaseMemInCaches()
738 if (extMemPool->softCachesCleanup() && in releaseCachesToLimit()
747 extMemPool->allLocalCaches.cleanup(/*cleanOnlyUnused=*/true) : in releaseCachesToLimit()
748 extMemPool->loc.decreasingCleanup()) in releaseCachesToLimit()
753 extMemPool->hardCachesCleanup(true); in releaseCachesToLimit()
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()
834 bool retSoftCachesCleanup = extMemPool->softCachesCleanup(); in genericGetBlock()
868 if (extMemPool->userPool()) in getLargeBlock()
869 extMemPool->lmbList.add(lmb); in getLargeBlock()
945 if (extMemPool->userPool()) in putLargeBlock()
946 extMemPool->lmbList.remove(lmb); in putLargeBlock()
964 || !isAligned(ptr, alignment) || alignment>extMemPool->granularity) in remap()
983 alignUp(sizeof(MemRegion) + alignedSize + sizeof(LastFreeBlock), extMemPool->granularity); in remap()
1145 && !extMemPool->fixedPool) { in coalescAndPutList()
1146 if (extMemPool->regionsAreReleaseable()) { 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()
1370 extMemPool = extMemoryPool; in init()
1378 MALLOC_ASSERT(extMemPool->userPool(), "Only user pool can be reset."); in reset()