MCPcopy Create free account
hub / github.com/bytedance/bolt / numPools

Method numPools

bolt/common/memory/Memory.cpp:433–440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

431}
432
433size_t MemoryManager::numPools() const {
434 size_t numPools = sysRoot_->getChildCount();
435 {
436 std::shared_lock guard{mutex_};
437 numPools += pools_.size() - sharedLeafPools_.size();
438 }
439 return numPools;
440}
441
442MemoryAllocator* MemoryManager::allocator() {
443 return allocator_.get();

Callers 2

TEST_FFunction · 0.80
tryDestructSafeMethod · 0.80

Calls 2

getChildCountMethod · 0.80
sizeMethod · 0.45

Tested by 1

TEST_FFunction · 0.64