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

Function arena_init

app/redis-6.2.6/deps/jemalloc/src/jemalloc.c:357–368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

355}
356
357arena_t *
358arena_init(tsdn_t *tsdn, unsigned ind, extent_hooks_t *extent_hooks) {
359 arena_t *arena;
360
361 malloc_mutex_lock(tsdn, &arenas_lock);
362 arena = arena_init_locked(tsdn, ind, extent_hooks);
363 malloc_mutex_unlock(tsdn, &arenas_lock);
364
365 arena_new_create_background_thread(tsdn, ind);
366
367 return arena;
368}
369
370static void
371arena_bind(tsd_t *tsd, unsigned ind, bool internal) {

Callers 4

ctl_arena_initFunction · 0.85
arena_i_extent_hooks_ctlFunction · 0.85
arena_getFunction · 0.85

Calls 4

malloc_mutex_lockFunction · 0.85
arena_init_lockedFunction · 0.85
malloc_mutex_unlockFunction · 0.85

Tested by

no test coverage detected