MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / prof_tdata_should_destroy_unlocked

Function prof_tdata_should_destroy_unlocked

deps/jemalloc/src/prof.c:2252–2261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2250}
2251
2252static bool
2253prof_tdata_should_destroy_unlocked(prof_tdata_t *tdata, bool even_if_attached) {
2254 if (tdata->attached && !even_if_attached) {
2255 return false;
2256 }
2257 if (ckh_count(&tdata->bt2tctx) != 0) {
2258 return false;
2259 }
2260 return true;
2261}
2262
2263static bool
2264prof_tdata_should_destroy(tsdn_t *tsdn, prof_tdata_t *tdata,

Callers 2

Calls 1

ckh_countFunction · 0.70

Tested by

no test coverage detected