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