/external/jemalloc_new/include/jemalloc/internal/ |
cache_bin.h | 39 /* Upper limit on ncached. */ 48 cache_bin_sz_t ncached; member in struct:cache_bin_s 52 * ncached and stats are both modified frequently. Let's keep them 64 * avail[-ncached, ... -1] are available items and the lowest item will 94 if (unlikely(bin->ncached == 0)) { 107 ret = *(bin->avail - bin->ncached); 108 bin->ncached--; 110 if (unlikely(bin->ncached < bin->low_water)) { 111 bin->low_water = bin->ncached;
|
tcache_inlines.h | 181 if (unlikely(bin->ncached == bin_info->ncached_max)) { 185 assert(bin->ncached < bin_info->ncached_max); 186 bin->ncached++; 187 *(bin->avail - bin->ncached) = ptr; 207 if (unlikely(bin->ncached == bin_info->ncached_max)) { 211 assert(bin->ncached < bin_info->ncached_max); 212 bin->ncached++; 213 *(bin->avail - bin->ncached) = ptr;
|
/external/jemalloc/include/jemalloc/internal/ |
tcache.h | 77 unsigned ncached_max; /* Upper limit on ncached. */ 84 unsigned ncached; /* # of cached objects. */ member in struct:tcache_bin_s 89 * avail[-ncached, ... -1] are available items and the lowest item will 272 if (unlikely(tbin->ncached == 0)) { 285 ret = *(tbin->avail - tbin->ncached); 286 tbin->ncached--; 288 if (unlikely((int)tbin->ncached < tbin->low_water)) 289 tbin->low_water = tbin->ncached; 430 if (unlikely(tbin->ncached == tbin_info->ncached_max)) { 434 assert(tbin->ncached < tbin_info->ncached_max) [all...] |
/external/jemalloc/src/ |
tcache.c | 49 tbin->ncached - tbin->low_water + (tbin->low_water 52 tcache_bin_flush_large(tsd, tbin, binind, tbin->ncached 69 tbin->low_water = tbin->ncached; 101 assert(rem <= tbin->ncached); 105 for (nflush = tbin->ncached - rem; nflush > 0; nflush = ndeferred) { 166 memmove(tbin->avail - rem, tbin->avail - tbin->ncached, rem * 168 tbin->ncached = rem; 169 if ((int)tbin->ncached < tbin->low_water) 170 tbin->low_water = tbin->ncached; 183 assert(rem <= tbin->ncached); [all...] |
arena.c | [all...] |
/external/jemalloc_new/src/ |
tcache.c | 59 tbin->ncached - tbin->low_water + (tbin->low_water 71 tcache_bin_flush_large(tsd, tbin, binind, tbin->ncached 83 tbin->low_water = tbin->ncached; 113 assert((cache_bin_sz_t)rem <= tbin->ncached); 117 unsigned nflush = tbin->ncached - rem; 188 memmove(tbin->avail - rem, tbin->avail - tbin->ncached, rem * 190 tbin->ncached = rem; 191 if (tbin->ncached < tbin->low_water) { 192 tbin->low_water = tbin->ncached; 204 assert((cache_bin_sz_t)rem <= tbin->ncached); [all...] |
arena.c | 162 tbin->ncached * sz_index2size(i)); 167 tbin->ncached * sz_index2size(i)); [all...] |