Lines Matching refs:bin
45 cache_bin_t *bin; in tcache_alloc_small() local
50 bin = tcache_small_bin_get(tcache, binind); in tcache_alloc_small()
51 ret = cache_bin_alloc_easy(bin, &tcache_success); in tcache_alloc_small()
61 bin, binind, &tcache_hard_success); in tcache_alloc_small()
95 bin->tstats.nrequests++; in tcache_alloc_small()
109 cache_bin_t *bin; in tcache_alloc_large() local
113 bin = tcache_large_bin_get(tcache, binind); in tcache_alloc_large()
114 ret = cache_bin_alloc_easy(bin, &tcache_success); in tcache_alloc_large()
155 bin->tstats.nrequests++; in tcache_alloc_large()
170 cache_bin_t *bin; in tcache_dalloc_small() local
179 bin = tcache_small_bin_get(tcache, binind); in tcache_dalloc_small()
181 if (unlikely(bin->ncached == bin_info->ncached_max)) { in tcache_dalloc_small()
182 tcache_bin_flush_small(tsd, tcache, bin, binind, in tcache_dalloc_small()
185 assert(bin->ncached < bin_info->ncached_max); in tcache_dalloc_small()
186 bin->ncached++; in tcache_dalloc_small()
187 *(bin->avail - bin->ncached) = ptr; in tcache_dalloc_small()
195 cache_bin_t *bin; in tcache_dalloc_large() local
205 bin = tcache_large_bin_get(tcache, binind); in tcache_dalloc_large()
207 if (unlikely(bin->ncached == bin_info->ncached_max)) { in tcache_dalloc_large()
208 tcache_bin_flush_large(tsd, bin, binind, in tcache_dalloc_large()
211 assert(bin->ncached < bin_info->ncached_max); in tcache_dalloc_large()
212 bin->ncached++; in tcache_dalloc_large()
213 *(bin->avail - bin->ncached) = ptr; in tcache_dalloc_large()