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

Function prof_prefork0

deps/memkind/src/jemalloc/src/prof.c:2391–2406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2389}
2390
2391void
2392prof_prefork0(tsdn_t *tsdn) {
2393 if (config_prof && opt_prof) {
2394 unsigned i;
2395
2396 malloc_mutex_prefork(tsdn, &prof_dump_mtx);
2397 malloc_mutex_prefork(tsdn, &bt2gctx_mtx);
2398 malloc_mutex_prefork(tsdn, &tdatas_mtx);
2399 for (i = 0; i < PROF_NTDATA_LOCKS; i++) {
2400 malloc_mutex_prefork(tsdn, &tdata_locks[i]);
2401 }
2402 for (i = 0; i < PROF_NCTX_LOCKS; i++) {
2403 malloc_mutex_prefork(tsdn, &gctx_locks[i]);
2404 }
2405 }
2406}
2407
2408void
2409prof_prefork1(tsdn_t *tsdn) {

Callers 1

jemalloc_preforkFunction · 0.70

Calls 1

malloc_mutex_preforkFunction · 0.70

Tested by

no test coverage detected