| 431 | } |
| 432 | |
| 433 | size_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 | |
| 442 | MemoryAllocator* MemoryManager::allocator() { |
| 443 | return allocator_.get(); |