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

Function tsd_remove_nominal

deps/jemalloc/src/tsd.c:97–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97static void
98tsd_remove_nominal(tsd_t *tsd) {
99 assert(tsd_in_nominal_list(tsd));
100 assert(tsd_state_get(tsd) <= tsd_state_nominal_max);
101 malloc_mutex_lock(tsd_tsdn(tsd), &tsd_nominal_tsds_lock);
102 ql_remove(&tsd_nominal_tsds, tsd, TSD_MANGLE(tcache).tsd_link);
103 malloc_mutex_unlock(tsd_tsdn(tsd), &tsd_nominal_tsds_lock);
104}
105
106static void
107tsd_force_recompute(tsdn_t *tsdn) {

Callers 1

tsd_state_setFunction · 0.85

Calls 5

tsd_in_nominal_listFunction · 0.85
tsd_state_getFunction · 0.85
malloc_mutex_lockFunction · 0.50
tsd_tsdnFunction · 0.50
malloc_mutex_unlockFunction · 0.50

Tested by

no test coverage detected