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

Function malloc_tsd_boot0

deps/jemalloc/src/tsd.c:417–432  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415}
416
417tsd_t *
418malloc_tsd_boot0(void) {
419 tsd_t *tsd;
420
421 ncleanups = 0;
422 if (malloc_mutex_init(&tsd_nominal_tsds_lock, "tsd_nominal_tsds_lock",
423 WITNESS_RANK_OMIT, malloc_mutex_rank_exclusive)) {
424 return NULL;
425 }
426 if (tsd_boot0()) {
427 return NULL;
428 }
429 tsd = tsd_fetch();
430 *tsd_arenas_tdata_bypassp_get(tsd) = true;
431 return tsd;
432}
433
434void
435malloc_tsd_boot1(void) {

Callers 1

malloc_init_hardFunction · 0.70

Calls 3

malloc_mutex_initFunction · 0.70
tsd_boot0Function · 0.50
tsd_fetchFunction · 0.50

Tested by

no test coverage detected