Lines Matching refs:bin
82 bool bin_init(bin_t *bin);
85 void bin_prefork(tsdn_t *tsdn, bin_t *bin);
86 void bin_postfork_parent(tsdn_t *tsdn, bin_t *bin);
87 void bin_postfork_child(tsdn_t *tsdn, bin_t *bin);
91 bin_stats_merge(tsdn_t *tsdn, bin_stats_t *dst_bin_stats, bin_t *bin) { in bin_stats_merge() argument
92 malloc_mutex_lock(tsdn, &bin->lock); in bin_stats_merge()
93 malloc_mutex_prof_read(tsdn, &dst_bin_stats->mutex_data, &bin->lock); in bin_stats_merge()
94 dst_bin_stats->nmalloc += bin->stats.nmalloc; in bin_stats_merge()
95 dst_bin_stats->ndalloc += bin->stats.ndalloc; in bin_stats_merge()
96 dst_bin_stats->nrequests += bin->stats.nrequests; in bin_stats_merge()
97 dst_bin_stats->curregs += bin->stats.curregs; in bin_stats_merge()
98 dst_bin_stats->nfills += bin->stats.nfills; in bin_stats_merge()
99 dst_bin_stats->nflushes += bin->stats.nflushes; in bin_stats_merge()
100 dst_bin_stats->nslabs += bin->stats.nslabs; in bin_stats_merge()
101 dst_bin_stats->reslabs += bin->stats.reslabs; in bin_stats_merge()
102 dst_bin_stats->curslabs += bin->stats.curslabs; in bin_stats_merge()
103 malloc_mutex_unlock(tsdn, &bin->lock); in bin_stats_merge()