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

Function prof_tctx_should_destroy

deps/jemalloc/src/prof.c:881–895  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

879}
880
881static bool
882prof_tctx_should_destroy(tsdn_t *tsdn, prof_tctx_t *tctx) {
883 malloc_mutex_assert_owner(tsdn, tctx->tdata->lock);
884
885 if (opt_prof_accum) {
886 return false;
887 }
888 if (tctx->cnts.curobjs != 0) {
889 return false;
890 }
891 if (tctx->prepared) {
892 return false;
893 }
894 return true;
895}
896
897static bool
898prof_gctx_should_destroy(prof_gctx_t *gctx) {

Callers 2

prof.cFile · 0.70
prof_free_sampled_objectFunction · 0.70

Calls 1

Tested by

no test coverage detected