Lines Matching refs:extMemPool
274 ExtMemoryPool extMemPool; member in rml::internal::MemoryPool
285 void clearTLS() { extMemPool.tlsPointerKey.setThreadMallocTLS(nullptr); } in clearTLS()
572 bool put(LargeMemoryBlock *object, ExtMemoryPool *extMemPool);
574 bool externalCleanup(ExtMemoryPool *extMemPool);
606 bool lloc_cleaned = lloc.externalCleanup(&memPool->extMemPool); in externalCleanup()
628 memPool->extMemPool.allLocalCaches.registerThread(tls); in createTLS()
992 TLSData* tls = extMemPool.tlsPointerKey.getThreadMallocTLS(); in getTLS()
994 tls = extMemPool.tlsPointerKey.createTLS(this, &extMemPool.backend); in getTLS()
1019 result = static_cast<Block*>(extMemPool.backend.getSlabBlock(num)); in getEmptyBlock()
1022 if (!extMemPool.userPool()) in getEmptyBlock()
1031 extMemPool.backend.putSlabBlock(b); in getEmptyBlock()
1039 if (extMemPool.userPool()) { in getEmptyBlock()
1067 if (!extMemPool.userPool()) in returnEmptyBlock()
1069 extMemPool.backend.putSlabBlock(block); in returnEmptyBlock()
1096 if (!extMemPool.init(poolId, policy->pAlloc, policy->pFree, in init()
1113 MALLOC_ASSERT(extMemPool.userPool(), "No reset for the system pool."); in reset()
1116 extMemPool.delayRegionsReleasing(true); in reset()
1119 extMemPool.lmbList.releaseAll</*poolDestroy=*/false>(&extMemPool.backend); in reset()
1120 if (!extMemPool.reset()) in reset()
1123 if (!extMemPool.initTLS()) in reset()
1125 extMemPool.delayRegionsReleasing(false); in reset()
1132 extMemPool.loc.reportStat(stdout); in destroy()
1135 extMemPool.backend.reportStat(stdout); in destroy()
1147 if (extMemPool.userPool()) in destroy()
1148 extMemPool.lmbList.releaseAll</*poolDestroy=*/true>(&extMemPool.backend); in destroy()
1156 extMemPool.orphanedBlocks.reset(); in destroy()
1158 return extMemPool.destroy(); in destroy()
1778 memPool->extMemPool.allLocalCaches.unregisterThread(this); in release()
1793 memPool->extMemPool.orphanedBlocks.put(intptr_t(bin+index), threadlessBlock); in release()
1805 memPool->extMemPool.orphanedBlocks.put(intptr_t(bin+index), threadlessBlock); in release()
1856 defaultMemPool->extMemPool.backend.getSlabBlock(1)); in getBlock()
2046 extMemPool.init(0, nullptr, nullptr, granularity, in initMemoryManager()
2049 if (!initOk || !initBackRefMain(&defaultMemPool->extMemPool.backend) || !ThreadId::init()) in initMemoryManager()
2196 bool LocalLOCImpl<LOW_MARK, HIGH_MARK>::put(LargeMemoryBlock *object, ExtMemoryPool *extMemPool) in put() argument
2228 extMemPool->freeLargeObjectList(headToRelease); in put()
2272 bool LocalLOCImpl<LOW_MARK, HIGH_MARK>::externalCleanup(ExtMemoryPool *extMemPool) in externalCleanup() argument
2275 extMemPool->freeLargeObjectList(localHead); in externalCleanup()
2296 lmb = extMemPool.mallocLargeObject(this, allocationSize); in getFromLLOCache()
2349 if (tls->lloc.put(header->memoryBlock, &extMemPool)) in putToLLOCache()
2352 extMemPool.freeLargeObject(header->memoryBlock); in putToLLOCache()
2415 bool isMemoryBlockHuge = copySize > memPool->extMemPool.backend.getMaxBinnedSize(); in reallocAligned()
2427 if (void *r = memPool->extMemPool.remap(ptr, copySize, newSize, in reallocAligned()
2526 return defaultMemPool->extMemPool.backend.ptrCanBeValid(ptr) && in isRecognized()
2599 mallocBlock = memPool->extMemPool.orphanedBlocks.get(tls, size); in internalPoolMalloc()
2605 mallocBlock = memPool->extMemPool.orphanedBlocks.get(tls, size); in internalPoolMalloc()
2639 MALLOC_ASSERT(memPool->extMemPool.userPool() || isRecognized(object), in internalPoolFree()
2912 defaultMemPool->extMemPool.loc.reportStat(stdout); in __TBB_mallocProcessShutdownNotification()
2921 destroyBackRefMain(&defaultMemPool->extMemPool.backend); in __TBB_mallocProcessShutdownNotification()
2968 …if (mallocInitialized.load(std::memory_order_acquire) && defaultMemPool->extMemPool.backend.ptrCan… in __TBB_malloc_safer_free()
3256 defaultMemPool->extMemPool.backend.setRecommendedMaxSize((size_t)value); in scalable_allocation_mode()
3283 defaultMemPool->extMemPool.loc.setHugeSizeThreshold((size_t)value); in scalable_allocation_mode()
3301 released = defaultMemPool->extMemPool.hardCachesCleanup(true); in scalable_allocation_command()