MCPcopy Create free account
hub / github.com/bytedance/bolt / freeContiguous

Method freeContiguous

bolt/common/memory/MemoryPool.cpp:813–820  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

811 allocator_->freeContiguous(allocation);
812 BOLT_CHECK(allocation.empty());
813 release(bytesToFree);
814}
815
816void MemoryPoolImpl::growContiguous(
817 MachinePageCount increment,
818 ContiguousAllocation& allocation) {
819 const void* oldAddr = allocation.data();
820 const uint64_t oldSize = allocation.size();
821 if (!allocator_->growContiguous(
822 increment, allocation, [this](uint64_t allocBytes, bool preAlloc) {
823 if (preAlloc) {

Callers 12

prepareJoinTableMethod · 0.45
~ContiguousAllocationMethod · 0.45
~BlockMethod · 0.45
TEST_PFunction · 0.45
~MemoryPoolTesterMethod · 0.45
runMethod · 0.45
TESTFunction · 0.45
allocateMultipleMethod · 0.45
freeMethod · 0.45
TEST_PFunction · 0.45
loadLoopMethod · 0.45

Calls 2

sizeMethod · 0.45
emptyMethod · 0.45

Tested by 10

~BlockMethod · 0.36
TEST_PFunction · 0.36
~MemoryPoolTesterMethod · 0.36
runMethod · 0.36
TESTFunction · 0.36
allocateMultipleMethod · 0.36
freeMethod · 0.36
TEST_PFunction · 0.36
loadLoopMethod · 0.36