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

Function malloc_mutex_postfork_child

app/redis-6.2.6/deps/jemalloc/src/mutex.c:195–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193}
194
195void
196malloc_mutex_postfork_child(tsdn_t *tsdn, malloc_mutex_t *mutex) {
197#ifdef JEMALLOC_MUTEX_INIT_CB
198 malloc_mutex_unlock(tsdn, mutex);
199#else
200 if (malloc_mutex_init(mutex, mutex->witness.name,
201 mutex->witness.rank, mutex->lock_order)) {
202 malloc_printf("<jemalloc>: Error re-initializing mutex in "
203 "child\n");
204 if (opt_abort) {
205 abort();
206 }
207 }
208#endif
209}
210
211bool
212malloc_mutex_boot(void) {

Callers 9

bin_postfork_childFunction · 0.85
extents_postfork_childFunction · 0.85
jemalloc_postfork_childFunction · 0.85
ctl_postfork_childFunction · 0.85
prof_postfork_childFunction · 0.85
tcache_postfork_childFunction · 0.85
arena_postfork_childFunction · 0.85
base_postfork_childFunction · 0.85

Calls 4

malloc_mutex_unlockFunction · 0.85
malloc_mutex_initFunction · 0.85
malloc_printfFunction · 0.85
abortClass · 0.85

Tested by

no test coverage detected