| 308 | |
| 309 | std::shared_ptr<MemoryPool> MemoryManager::addRootPool( |
| 310 | const std::string& name, |
| 311 | int64_t maxCapacity, |
| 312 | std::unique_ptr<MemoryReclaimer> reclaimer, |
| 313 | const std::optional<MemoryPool::DebugOptions>& poolDebugOpts) { |
| 314 | std::string poolName = name; |
| 315 | if (poolName.empty()) { |