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

Function prof_prefork0

deps/jemalloc/src/prof.c:3087–3102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3085}
3086
3087void
3088prof_prefork0(tsdn_t *tsdn) {
3089 if (config_prof && opt_prof) {
3090 unsigned i;
3091
3092 malloc_mutex_prefork(tsdn, &prof_dump_mtx);
3093 malloc_mutex_prefork(tsdn, &bt2gctx_mtx);
3094 malloc_mutex_prefork(tsdn, &tdatas_mtx);
3095 for (i = 0; i < PROF_NTDATA_LOCKS; i++) {
3096 malloc_mutex_prefork(tsdn, &tdata_locks[i]);
3097 }
3098 for (i = 0; i < PROF_NCTX_LOCKS; i++) {
3099 malloc_mutex_prefork(tsdn, &gctx_locks[i]);
3100 }
3101 }
3102}
3103
3104void
3105prof_prefork1(tsdn_t *tsdn) {

Callers 1

jemalloc_preforkFunction · 0.70

Calls 1

malloc_mutex_preforkFunction · 0.70

Tested by

no test coverage detected