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
272 if (unlikely(tbin->ncached == 0)) { in tcache_alloc_easy()
285 ret = *(tbin->avail - tbin->ncached); in tcache_alloc_easy()
286 tbin->ncached--; in tcache_alloc_easy()
288 if (unlikely((int)tbin->ncached < tbin->low_water)) in tcache_alloc_easy()
289 tbin->low_water = tbin->ncached; in tcache_alloc_easy()
430 if (unlikely(tbin->ncached == tbin_info->ncached_max)) { in tcache_dalloc_small()
434 assert(tbin->ncached < tbin_info->ncached_max); in tcache_dalloc_small()
435 tbin->ncached++; in tcache_dalloc_small()
436 *(tbin->avail - tbin->ncached) = ptr; in tcache_dalloc_small()
[all …]
/external/jemalloc/src/
Dtcache.c49 tbin->ncached - tbin->low_water + (tbin->low_water in tcache_event_hard()
52 tcache_bin_flush_large(tsd, tbin, binind, tbin->ncached in tcache_event_hard()
69 tbin->low_water = tbin->ncached; in tcache_event_hard()
101 assert(rem <= tbin->ncached); in tcache_bin_flush_small()
105 for (nflush = tbin->ncached - rem; nflush > 0; nflush = ndeferred) { in tcache_bin_flush_small()
166 memmove(tbin->avail - rem, tbin->avail - tbin->ncached, rem * in tcache_bin_flush_small()
168 tbin->ncached = rem; in tcache_bin_flush_small()
169 if ((int)tbin->ncached < tbin->low_water) in tcache_bin_flush_small()
170 tbin->low_water = tbin->ncached; in tcache_bin_flush_small()
183 assert(rem <= tbin->ncached); in tcache_bin_flush_large()
[all …]
Darena.c2411 assert(tbin->ncached == 0); in arena_tcache_fill_small()
2452 tbin->ncached = i; in arena_tcache_fill_small()