MCPcopy Create free account
hub / github.com/F-Stack/f-stack / prof_postfork_child

Function prof_postfork_child

app/redis-6.2.6/deps/jemalloc/src/prof.c:2451–2471  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2449}
2450
2451void
2452prof_postfork_child(tsdn_t *tsdn) {
2453 if (config_prof && opt_prof) {
2454 unsigned i;
2455
2456 malloc_mutex_postfork_child(tsdn, &prof_thread_active_init_mtx);
2457 malloc_mutex_postfork_child(tsdn, &next_thr_uid_mtx);
2458 malloc_mutex_postfork_child(tsdn, &prof_gdump_mtx);
2459 malloc_mutex_postfork_child(tsdn, &prof_dump_seq_mtx);
2460 malloc_mutex_postfork_child(tsdn, &prof_active_mtx);
2461 for (i = 0; i < PROF_NCTX_LOCKS; i++) {
2462 malloc_mutex_postfork_child(tsdn, &gctx_locks[i]);
2463 }
2464 for (i = 0; i < PROF_NTDATA_LOCKS; i++) {
2465 malloc_mutex_postfork_child(tsdn, &tdata_locks[i]);
2466 }
2467 malloc_mutex_postfork_child(tsdn, &tdatas_mtx);
2468 malloc_mutex_postfork_child(tsdn, &bt2gctx_mtx);
2469 malloc_mutex_postfork_child(tsdn, &prof_dump_mtx);
2470 }
2471}
2472
2473/******************************************************************************/

Callers 1

jemalloc_postfork_childFunction · 0.85

Calls 1

Tested by

no test coverage detected