Home
last modified time | relevance | path

Searched refs:ncached (Results 1 – 3 of 3) sorted by relevance

/redis-3.2.3/deps/jemalloc/include/jemalloc/internal/
H A Dtcache.h72 unsigned ncached; /* # of cached objects. */ member
254 if (unlikely(tbin->ncached == 0)) { in tcache_alloc_easy()
258 tbin->ncached--; in tcache_alloc_easy()
260 tbin->low_water = tbin->ncached; in tcache_alloc_easy()
261 ret = tbin->avail[tbin->ncached]; in tcache_alloc_easy()
379 assert(tbin->ncached < tbin_info->ncached_max); in tcache_dalloc_small()
380 tbin->avail[tbin->ncached] = ptr; in tcache_dalloc_small()
381 tbin->ncached++; in tcache_dalloc_small()
408 assert(tbin->ncached < tbin_info->ncached_max); in tcache_dalloc_large()
409 tbin->avail[tbin->ncached] = ptr; in tcache_dalloc_large()
[all …]
/redis-3.2.3/deps/jemalloc/src/
H A Dtcache.c45 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()
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()
246 tbin->ncached = rem; in tcache_bin_flush_large()
247 if ((int)tbin->ncached < tbin->low_water) in tcache_bin_flush_large()
[all …]
H A Darena.c1995 assert(tbin->ncached == 0); in arena_tcache_fill_small()
2037 tbin->ncached = i; in arena_tcache_fill_small()