Home
last modified time | relevance | path

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

/external/jemalloc/include/jemalloc/internal/
Dtcache.h84 unsigned ncached; /* # of cached objects. */ member
266 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 …]
/external/jemalloc/src/
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()
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 …]
Darena.c1811 assert(tbin->ncached == 0); in arena_tcache_fill_small()
1851 tbin->ncached = i; in arena_tcache_fill_small()