MCPcopy Create free account
hub / github.com/facebook/CacheLib / free

Method free

cachelib/allocator/memory/MemoryPool.cpp:356–360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 9

allocateInternalMethod · 0.45
moveForSlabReleaseMethod · 0.45
releaseMethod · 0.45
checkFreeingFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45

Calls 1

getAllocSizeMethod · 0.45

Tested by 4

checkFreeingFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36