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

Method freeAllocations

bolt/common/caching/AsyncDataCache.cpp:498–503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

496}
497
498void CacheShard::freeAllocations(std::vector<memory::Allocation>& allocations) {
499 for (auto& allocation : allocations) {
500 cache_->allocator()->freeNonContiguous(allocation);
501 }
502 allocations.clear();
503}
504
505void CacheShard::calibrateThreshold() {
506 auto numSamples = std::min<int32_t>(10, entries_.size());

Callers

nothing calls this directly

Calls 3

freeNonContiguousMethod · 0.45
allocatorMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected