Lines Matching refs:MemoryPool

57 class MemoryPool;
61 class MemoryPool;
103 void *allocate(MemoryPool *memPool, size_t size);
261 class MemoryPool { class
266 MemoryPool() = delete; // deny
272 MemoryPool *next,
295 static intptr_t defaultMemPool_space[sizeof(MemoryPool)/sizeof(intptr_t) +
296 (sizeof(MemoryPool)%sizeof(intptr_t)? 1 : 0)];
297 static MemoryPool *defaultMemPool = (MemoryPool*)defaultMemPool_space;
298 const size_t MemoryPool::defaultGranularity;
300 MallocMutex MemoryPool::memPoolListLock;
323 MemoryPool *poolPtr;
345 friend void *BootStrapBlocks::allocate(MemoryPool *, size_t);
347 friend Block *MemoryPool::getEmptyBlock(size_t);
422 MemoryPool *getMemPool() const { return poolPtr; } // do not use on the hot path! in getMemPool()
447 friend bool MemoryPool::destroy();
587 MemoryPool *memPool;
596 …TLSData(MemoryPool *mPool, Backend *bknd) : memPool(mPool), freeSlabBlocks(bknd), currCacheIdx(0) … in TLSData()
597 MemoryPool *getMemPool() const { return memPool; } in getMemPool()
615 TLSData *TLSKey::createTLS(MemoryPool *memPool, Backend *backend) in createTLS()
738 static void *internalPoolMalloc(MemoryPool* mPool, size_t size);
739 static bool internalPoolFree(MemoryPool *mPool, void *object, size_t size);
874 void *BootStrapBlocks::allocate(MemoryPool *memPool, size_t size) in allocate()
990 TLSData* MemoryPool::getTLS(bool create) in getTLS()
1007 Block *MemoryPool::getEmptyBlock(size_t size) in getEmptyBlock()
1060 void MemoryPool::returnEmptyBlock(Block *block, bool poolTheBlock) in returnEmptyBlock()
1094 bool MemoryPool::init(intptr_t poolId, const MemPoolPolicy *policy) in init()
1111 bool MemoryPool::reset() in reset()
1129 bool MemoryPool::destroy() in destroy()
1161 void MemoryPool::onThreadShutdown(TLSData *tlsData) in onThreadShutdown()
2017 void MemoryPool::initDefaultPool() { in initDefaultPool()
2043 defaultMemPool = (MemoryPool*)defaultMemPool_space; in initMemoryManager()
2051 MemoryPool::initDefaultPool(); in initMemoryManager()
2281 void *MemoryPool::getFromLLOCache(TLSData* tls, size_t size, size_t alignment) in getFromLLOCache()
2341 void MemoryPool::putToLLOCache(TLSData *tls, void *object) in putToLLOCache()
2367 static void *allocateAligned(MemoryPool *memPool, size_t size, size_t alignment) in allocateAligned()
2400 static void *reallocAligned(MemoryPool *memPool, void *ptr, in reallocAligned()
2550 static void *internalPoolMalloc(MemoryPool* memPool, size_t size) in internalPoolMalloc()
2632 static bool internalPoolFree(MemoryPool *memPool, void *object, size_t size) in internalPoolFree()
2690 TBBMALLOC_EXPORT rml::MemoryPool *pool_create(intptr_t pool_id, const MemPoolPolicy *policy) in pool_create()
2692 rml::MemoryPool *pool; in pool_create()
2700 rml::MemoryPool **pool) in pool_create_v1()
2720 rml::internal::MemoryPool *memPool = in pool_create_v1()
2721 (rml::internal::MemoryPool*)internalMalloc((sizeof(rml::internal::MemoryPool))); in pool_create_v1()
2726 memset(static_cast<void*>(memPool), 0, sizeof(rml::internal::MemoryPool)); in pool_create_v1()
2733 *pool = (rml::MemoryPool*)memPool; in pool_create_v1()
2737 bool pool_destroy(rml::MemoryPool* memPool) in pool_destroy()
2740 bool ret = ((rml::internal::MemoryPool*)memPool)->destroy(); in pool_destroy()
2746 bool pool_reset(rml::MemoryPool* memPool) in pool_reset()
2750 return ((rml::internal::MemoryPool*)memPool)->reset(); in pool_reset()
2753 void *pool_malloc(rml::MemoryPool* mPool, size_t size) in pool_malloc()
2755 return internalPoolMalloc((rml::internal::MemoryPool*)mPool, size); in pool_malloc()
2758 void *pool_realloc(rml::MemoryPool* mPool, void *object, size_t size) in pool_realloc()
2761 return internalPoolMalloc((rml::internal::MemoryPool*)mPool, size); in pool_realloc()
2763 internalPoolFree((rml::internal::MemoryPool*)mPool, object, 0); in pool_realloc()
2766 return reallocAligned((rml::internal::MemoryPool*)mPool, object, size, 0); in pool_realloc()
2769 void *pool_aligned_malloc(rml::MemoryPool* mPool, size_t size, size_t alignment) in pool_aligned_malloc()
2774 return allocateAligned((rml::internal::MemoryPool*)mPool, size, alignment); in pool_aligned_malloc()
2777 void *pool_aligned_realloc(rml::MemoryPool* memPool, void *ptr, size_t size, size_t alignment) in pool_aligned_realloc()
2781 rml::internal::MemoryPool *mPool = (rml::internal::MemoryPool*)memPool; in pool_aligned_realloc()
2795 bool pool_free(rml::MemoryPool *mPool, void *object) in pool_free()
2797 return internalPoolFree((rml::internal::MemoryPool*)mPool, object, 0); in pool_free()
2800 rml::MemoryPool *pool_identify(void *object) in pool_identify()
2802 rml::internal::MemoryPool *pool; in pool_identify()
2813 return (rml::MemoryPool*)pool; in pool_identify()
2816 size_t pool_msize(rml::MemoryPool *mPool, void* object) in pool_msize()
2875 MallocMutex::scoped_lock lock(MemoryPool::memPoolListLock, /*wait=*/!main_thread, &locked); in doThreadShutdownNotification()
2877 for (MemoryPool *memPool = defaultMemPool->next; memPool; memPool = memPool->next) in doThreadShutdownNotification()