Lines Matching full:bin
11 * cache_bin_array_descriptor_t objects and reading out per-bin stats it
18 * The count of the number of cached allocations in a bin. We make this signed
28 * bin.
88 cache_bin_alloc_easy(cache_bin_t *bin, bool *success) { in cache_bin_alloc_easy() argument
91 bin->ncached--; in cache_bin_alloc_easy()
94 * Check for both bin->ncached == 0 and ncached < low_water in cache_bin_alloc_easy()
97 if (unlikely(bin->ncached <= bin->low_water)) { in cache_bin_alloc_easy()
98 bin->low_water = bin->ncached; in cache_bin_alloc_easy()
99 if (bin->ncached == -1) { in cache_bin_alloc_easy()
100 bin->ncached = 0; in cache_bin_alloc_easy()
114 ret = *(bin->avail - (bin->ncached + 1)); in cache_bin_alloc_easy()
120 cache_bin_dalloc_easy(cache_bin_t *bin, cache_bin_info_t *bin_info, void *ptr) { in cache_bin_dalloc_easy() argument
121 if (unlikely(bin->ncached == bin_info->ncached_max)) { in cache_bin_dalloc_easy()
124 assert(bin->ncached < bin_info->ncached_max); in cache_bin_dalloc_easy()
125 bin->ncached++; in cache_bin_dalloc_easy()
126 *(bin->avail - bin->ncached) = ptr; in cache_bin_dalloc_easy()