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

Method clear

bolt/common/memory/Allocation.cpp:118–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118void ContiguousAllocation::clear() {
119 pool_ = nullptr;
120 set(nullptr, 0);
121}
122
123MachinePageCount ContiguousAllocation::numPages() const {
124 return AllocationTraits::numPages(size_);

Callers 14

appendMoveMethod · 0.45
freeContiguousImplMethod · 0.45
adviseAwayMethod · 0.45
freeToPoolMethod · 0.45
startWriteMethod · 0.45

Calls

no outgoing calls

Tested by 1

startWriteMethod · 0.36