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

Function prof_postfork_parent

deps/jemalloc/src/prof.c:3115–3136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3113}
3114
3115void
3116prof_postfork_parent(tsdn_t *tsdn) {
3117 if (config_prof && opt_prof) {
3118 unsigned i;
3119
3120 malloc_mutex_postfork_parent(tsdn,
3121 &prof_thread_active_init_mtx);
3122 malloc_mutex_postfork_parent(tsdn, &next_thr_uid_mtx);
3123 malloc_mutex_postfork_parent(tsdn, &prof_gdump_mtx);
3124 malloc_mutex_postfork_parent(tsdn, &prof_dump_seq_mtx);
3125 malloc_mutex_postfork_parent(tsdn, &prof_active_mtx);
3126 for (i = 0; i < PROF_NCTX_LOCKS; i++) {
3127 malloc_mutex_postfork_parent(tsdn, &gctx_locks[i]);
3128 }
3129 for (i = 0; i < PROF_NTDATA_LOCKS; i++) {
3130 malloc_mutex_postfork_parent(tsdn, &tdata_locks[i]);
3131 }
3132 malloc_mutex_postfork_parent(tsdn, &tdatas_mtx);
3133 malloc_mutex_postfork_parent(tsdn, &bt2gctx_mtx);
3134 malloc_mutex_postfork_parent(tsdn, &prof_dump_mtx);
3135 }
3136}
3137
3138void
3139prof_postfork_child(tsdn_t *tsdn) {

Callers 1

jemalloc_postfork_parentFunction · 0.70

Calls 1

Tested by

no test coverage detected