Home
last modified time | relevance | path

Searched refs:allocatedCount (Results 1 – 3 of 3) sorted by relevance

/oneTBB/src/tbbmalloc/
H A Dbackref.cpp34 std::atomic<int> allocatedCount; // the number of objects allocated member
43 freeList(nullptr), nextRawMemBlock(nullptr), allocatedCount(0), myNum(num), in BackRefBlock()
201 …if (active.load(std::memory_order_relaxed)->allocatedCount.load(std::memory_order_relaxed) == BR_M… in requestNewSpace()
215 if (active_block->allocatedCount.load(std::memory_order_relaxed) < BR_MAX_CNT) in findFreeBlock()
221 if (active_block->allocatedCount.load(std::memory_order_relaxed) == BR_MAX_CNT) { in findFreeBlock()
284 } else if (blockToUse->allocatedCount.load(std::memory_order_relaxed) < BR_MAX_CNT) { in newBackRef()
288 if (blockToUse->allocatedCount.load(std::memory_order_relaxed) == BR_MAX_CNT-1) { in newBackRef()
296 if (!blockToUse->allocatedCount.load(std::memory_order_relaxed) && in newBackRef()
300 …blockToUse->allocatedCount.store(blockToUse->allocatedCount.load(std::memory_order_relaxed) + 1, s… in newBackRef()
341 …currBlock->allocatedCount.store(currBlock->allocatedCount.load(std::memory_order_relaxed)-1, std::… in removeBackRef()
H A Dfrontend.cpp357 if (allocatedCount > 0) return false; in empty()
395 MALLOC_ASSERT(allocatedCount>0, msg); in checkFreePrecond()
1378 allocatedCount--; in freeOwnObject()
1477 allocatedCount--; in privatizePublicFreeList()
1481 allocatedCount--; in privatizePublicFreeList()
1569 allocatedCount = 0; in cleanBlockHeader()
1714 MALLOC_ASSERT( allocatedCount==0, ASSERT_TEXT ); in reset()
1892 firstStartupBlock->allocatedCount++; in allocate()
1914 if (0 == --allocatedCount) { in free()
2116 allocatedCount++; in allocateFromFreeList()
[all …]
/oneTBB/test/tbbmalloc/
H A Dtest_malloc_whitebox.cpp283 cnt += backRefMain.load(std::memory_order_relaxed)->backRefBl[i]->allocatedCount; in allocatedBackRefCount()