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

Function prof_postfork_parent

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

Source from the content-addressed store, hash-verified

2426}
2427
2428void
2429prof_postfork_parent(tsdn_t *tsdn) {
2430 if (config_prof && opt_prof) {
2431 unsigned i;
2432
2433 malloc_mutex_postfork_parent(tsdn,
2434 &prof_thread_active_init_mtx);
2435 malloc_mutex_postfork_parent(tsdn, &next_thr_uid_mtx);
2436 malloc_mutex_postfork_parent(tsdn, &prof_gdump_mtx);
2437 malloc_mutex_postfork_parent(tsdn, &prof_dump_seq_mtx);
2438 malloc_mutex_postfork_parent(tsdn, &prof_active_mtx);
2439 for (i = 0; i < PROF_NCTX_LOCKS; i++) {
2440 malloc_mutex_postfork_parent(tsdn, &gctx_locks[i]);
2441 }
2442 for (i = 0; i < PROF_NTDATA_LOCKS; i++) {
2443 malloc_mutex_postfork_parent(tsdn, &tdata_locks[i]);
2444 }
2445 malloc_mutex_postfork_parent(tsdn, &tdatas_mtx);
2446 malloc_mutex_postfork_parent(tsdn, &bt2gctx_mtx);
2447 malloc_mutex_postfork_parent(tsdn, &prof_dump_mtx);
2448 }
2449}
2450
2451void
2452prof_postfork_child(tsdn_t *tsdn) {

Callers 1

jemalloc_postfork_parentFunction · 0.85

Calls 1

Tested by

no test coverage detected