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

Function arena_init

deps/jemalloc/src/jemalloc.c:363–374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

361}
362
363arena_t *
364arena_init(tsdn_t *tsdn, unsigned ind, extent_hooks_t *extent_hooks) {
365 arena_t *arena;
366
367 malloc_mutex_lock(tsdn, &arenas_lock);
368 arena = arena_init_locked(tsdn, ind, extent_hooks);
369 malloc_mutex_unlock(tsdn, &arenas_lock);
370
371 arena_new_create_background_thread(tsdn, ind);
372
373 return arena;
374}
375
376static void
377arena_bind(tsd_t *tsd, unsigned ind, bool internal) {

Callers 4

ctl_arena_initFunction · 0.70
arena_i_extent_hooks_ctlFunction · 0.70
arena_getFunction · 0.50

Calls 4

arena_init_lockedFunction · 0.70
malloc_mutex_lockFunction · 0.50
malloc_mutex_unlockFunction · 0.50

Tested by

no test coverage detected