Searched refs:ncached (Results 1 – 3 of 3) sorted by relevance
84 unsigned ncached; /* # of cached objects. */ member266 if (unlikely(tbin->ncached == 0)) { in tcache_alloc_easy()270 tbin->ncached--; in tcache_alloc_easy()271 if (unlikely((int)tbin->ncached < tbin->low_water)) in tcache_alloc_easy()272 tbin->low_water = tbin->ncached; in tcache_alloc_easy()273 ret = tbin->avail[tbin->ncached]; in tcache_alloc_easy()387 if (unlikely(tbin->ncached == tbin_info->ncached_max)) { in tcache_dalloc_small()391 assert(tbin->ncached < tbin_info->ncached_max); in tcache_dalloc_small()392 tbin->avail[tbin->ncached] = ptr; in tcache_dalloc_small()393 tbin->ncached++; in tcache_dalloc_small()[all …]
45 tbin->ncached - tbin->low_water + (tbin->low_water in tcache_event_hard()48 tcache_bin_flush_large(tsd, tbin, binind, tbin->ncached in tcache_event_hard()65 tbin->low_water = tbin->ncached; in tcache_event_hard()98 assert(rem <= tbin->ncached); in tcache_bin_flush_small()102 for (nflush = tbin->ncached - rem; nflush > 0; nflush = ndeferred) { in tcache_bin_flush_small()161 memmove(tbin->avail, &tbin->avail[tbin->ncached - rem], in tcache_bin_flush_small()163 tbin->ncached = rem; in tcache_bin_flush_small()164 if ((int)tbin->ncached < tbin->low_water) in tcache_bin_flush_small()165 tbin->low_water = tbin->ncached; in tcache_bin_flush_small()178 assert(rem <= tbin->ncached); in tcache_bin_flush_large()[all …]
1811 assert(tbin->ncached == 0); in arena_tcache_fill_small()1851 tbin->ncached = i; in arena_tcache_fill_small()