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

Function prof_postfork_child

deps/jemalloc/src/prof.c:3138–3158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3136}
3137
3138void
3139prof_postfork_child(tsdn_t *tsdn) {
3140 if (config_prof && opt_prof) {
3141 unsigned i;
3142
3143 malloc_mutex_postfork_child(tsdn, &prof_thread_active_init_mtx);
3144 malloc_mutex_postfork_child(tsdn, &next_thr_uid_mtx);
3145 malloc_mutex_postfork_child(tsdn, &prof_gdump_mtx);
3146 malloc_mutex_postfork_child(tsdn, &prof_dump_seq_mtx);
3147 malloc_mutex_postfork_child(tsdn, &prof_active_mtx);
3148 for (i = 0; i < PROF_NCTX_LOCKS; i++) {
3149 malloc_mutex_postfork_child(tsdn, &gctx_locks[i]);
3150 }
3151 for (i = 0; i < PROF_NTDATA_LOCKS; i++) {
3152 malloc_mutex_postfork_child(tsdn, &tdata_locks[i]);
3153 }
3154 malloc_mutex_postfork_child(tsdn, &tdatas_mtx);
3155 malloc_mutex_postfork_child(tsdn, &bt2gctx_mtx);
3156 malloc_mutex_postfork_child(tsdn, &prof_dump_mtx);
3157 }
3158}
3159
3160/******************************************************************************/

Callers 1

jemalloc_postfork_childFunction · 0.70

Calls 1

Tested by

no test coverage detected