| 165 | } |
| 166 | |
| 167 | size_t MemoryPool::getCurrentUsedSize() const noexcept { |
| 168 | LockHolder l(lock_); |
| 169 | return currSlabAllocSize_ + freeSlabs_.size() * Slab::kSize; |
| 170 | } |
| 171 | |
| 172 | AllocationClass& MemoryPool::getAllocationClassFor(uint32_t size) const { |
| 173 | const auto classId = getAllocationClassId(size); |