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

Function tsd_postfork_child

deps/jemalloc/src/tsd.c:526–534  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

524}
525
526void
527tsd_postfork_child(tsd_t *tsd) {
528 malloc_mutex_postfork_child(tsd_tsdn(tsd), &tsd_nominal_tsds_lock);
529 ql_new(&tsd_nominal_tsds);
530
531 if (tsd_state_get(tsd) <= tsd_state_nominal_max) {
532 tsd_add_nominal(tsd);
533 }
534}

Callers 1

jemalloc_postfork_childFunction · 0.85

Calls 4

tsd_state_getFunction · 0.85
tsd_add_nominalFunction · 0.85
tsd_tsdnFunction · 0.50

Tested by

no test coverage detected