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

Function bin_init

app/redis-6.2.6/deps/jemalloc/src/bin.c:22–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20};
21
22bool
23bin_init(bin_t *bin) {
24 if (malloc_mutex_init(&bin->lock, "bin", WITNESS_RANK_BIN,
25 malloc_mutex_rank_exclusive)) {
26 return true;
27 }
28 bin->slabcur = NULL;
29 extent_heap_new(&bin->slabs_nonfull);
30 extent_list_init(&bin->slabs_full);
31 if (config_stats) {
32 memset(&bin->stats, 0, sizeof(bin_stats_t));
33 }
34 return false;
35}
36
37void
38bin_prefork(tsdn_t *tsdn, bin_t *bin) {

Callers 1

arena_newFunction · 0.85

Calls 3

malloc_mutex_initFunction · 0.85
extent_list_initFunction · 0.85
memsetFunction · 0.85

Tested by

no test coverage detected