MCPcopy Create free account
hub / github.com/apache/impala / FreeEntry

Method FreeEntry

be/src/util/cache/rl-cache.cc:214–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212
213template<Cache::EvictionPolicy policy>
214void 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
223template<Cache::EvictionPolicy policy>
224void RLCacheShard<policy>::UpdateMemTracker(int64_t delta) {

Callers

nothing calls this directly

Calls 5

chargeMethod · 0.80
loadMethod · 0.45
EvictedEntryMethod · 0.45
keyMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected