static void zone_force_unlock(malloc_zone_t *zone) { if (isthreaded) jemalloc_postfork_parent(); }
static void zone_force_unlock(malloc_zone_t *zone) { /* /!\ This calls into jemalloc. It works because we're linked in the * same library. Stolen from jemalloc's zone.c. */ if (isthreaded) jemalloc_postfork_parent(); }
void je_malloc_enable() { jemalloc_postfork_parent(); if (malloc_disabled_tcache) { je_mallctl("thread.tcache.enabled", NULL, NULL, &malloc_disabled_tcache, sizeof(malloc_disabled_tcache)); } pthread_mutex_unlock(&malloc_disabled_lock); }