Home
last modified time | relevance | path

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

/external/jemalloc_new/include/jemalloc/internal/
Dcache_bin.h48 cache_bin_sz_t ncached; member
94 if (unlikely(bin->ncached == 0)) { in cache_bin_alloc_easy()
107 ret = *(bin->avail - bin->ncached); in cache_bin_alloc_easy()
108 bin->ncached--; in cache_bin_alloc_easy()
110 if (unlikely(bin->ncached < bin->low_water)) { in cache_bin_alloc_easy()
111 bin->low_water = bin->ncached; in cache_bin_alloc_easy()
Dtcache_inlines.h181 if (unlikely(bin->ncached == bin_info->ncached_max)) { in tcache_dalloc_small()
185 assert(bin->ncached < bin_info->ncached_max); in tcache_dalloc_small()
186 bin->ncached++; in tcache_dalloc_small()
187 *(bin->avail - bin->ncached) = ptr; in tcache_dalloc_small()
207 if (unlikely(bin->ncached == bin_info->ncached_max)) { in tcache_dalloc_large()
211 assert(bin->ncached < bin_info->ncached_max); in tcache_dalloc_large()
212 bin->ncached++; in tcache_dalloc_large()
213 *(bin->avail - bin->ncached) = ptr; in tcache_dalloc_large()
/external/jemalloc_new/src/
Dtcache.c59 tbin->ncached - tbin->low_water + (tbin->low_water in tcache_event_hard()
71 tcache_bin_flush_large(tsd, tbin, binind, tbin->ncached in tcache_event_hard()
83 tbin->low_water = tbin->ncached; in tcache_event_hard()
113 assert((cache_bin_sz_t)rem <= tbin->ncached); in tcache_bin_flush_small()
117 unsigned nflush = tbin->ncached - rem; in tcache_bin_flush_small()
188 memmove(tbin->avail - rem, tbin->avail - tbin->ncached, rem * in tcache_bin_flush_small()
190 tbin->ncached = rem; in tcache_bin_flush_small()
191 if (tbin->ncached < tbin->low_water) { in tcache_bin_flush_small()
192 tbin->low_water = tbin->ncached; in tcache_bin_flush_small()
204 assert((cache_bin_sz_t)rem <= tbin->ncached); in tcache_bin_flush_large()
[all …]
Darena.c162 tbin->ncached * sz_index2size(i)); in arena_stats_merge()
167 tbin->ncached * sz_index2size(i)); in arena_stats_merge()
1255 assert(tbin->ncached == 0); in arena_tcache_fill_small()
1302 tbin->ncached = i; in arena_tcache_fill_small()