MCPcopy Create free account
hub / github.com/bytedance/bolt / ~ContiguousAllocation

Method ~ContiguousAllocation

bolt/common/memory/Allocation.cpp:96–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96ContiguousAllocation::~ContiguousAllocation() {
97 if (pool_ != nullptr) {
98 pool_->freeContiguous(*this);
99 pool_ = nullptr;
100 }
101 // NOTE: exception throw on object destruction will cause process crash.
102 if ((data_ != nullptr) || (size_ != 0)) {
103 BOLT_FAIL("Bad ContiguousAllocation state on destruction: {}", toString());
104 }
105}
106
107void ContiguousAllocation::set(void* data, uint64_t size, uint64_t maxSize) {
108 data_ = data;

Callers

nothing calls this directly

Calls 2

toStringFunction · 0.50
freeContiguousMethod · 0.45

Tested by

no test coverage detected