D | bin.c | 4 #include "jemalloc/internal/bin.h" 11 #define SC(index, lg_grp, lg_delta, ndelta, psz, bin, pgs, \ argument 13 BIN_INFO_bin_##bin((1U<<lg_grp) + (ndelta<<lg_delta), \ 23 bin_init(bin_t *bin) { in bin_init() argument 24 if (malloc_mutex_init(&bin->lock, "bin", WITNESS_RANK_BIN, in bin_init() 28 bin->slabcur = NULL; in bin_init() 29 extent_heap_new(&bin->slabs_nonfull); in bin_init() 30 extent_list_init(&bin->slabs_full); in bin_init() 32 memset(&bin->stats, 0, sizeof(bin_stats_t)); in bin_init() 38 bin_prefork(tsdn_t *tsdn, bin_t *bin) { in bin_prefork() argument [all …]
|