| 212 | |
| 213 | template<Cache::EvictionPolicy policy> |
| 214 | void RLCacheShard<policy>::FreeEntry(RLHandle* e) { |
| 215 | DCHECK_EQ(e->refs.load(std::memory_order_relaxed), 0); |
| 216 | if (e->eviction_callback) { |
| 217 | e->eviction_callback->EvictedEntry(e->key(), e->value()); |
| 218 | } |
| 219 | UpdateMemTracker(-static_cast<int64_t>(e->charge())); |
| 220 | Free(e); |
| 221 | } |
| 222 | |
| 223 | template<Cache::EvictionPolicy policy> |
| 224 | void RLCacheShard<policy>::UpdateMemTracker(int64_t delta) { |
nothing calls this directly
no test coverage detected