| 354 | void* MemoryPool::allocateZeroedSlab() { return allocate(Slab::kSize); } |
| 355 | |
| 356 | void MemoryPool::free(void* alloc) { |
| 357 | auto& ac = getAllocationClassFor(alloc); |
| 358 | ac.free(alloc); |
| 359 | currAllocSize_ -= ac.getAllocSize(); |
| 360 | } |
| 361 | |
| 362 | serialization::MemoryPoolObject MemoryPool::saveState() const { |
| 363 | if (!slabAllocator_.isRestorable()) { |