Searched refs:ncached (Results 1 – 7 of 7) sorted by relevance
/external/jemalloc_new/include/jemalloc/internal/ |
D | cache_bin.h | 48 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()
|
D | tcache_inlines.h | 181 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/include/jemalloc/internal/ |
D | tcache.h | 84 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/ |
D | tcache.c | 49 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 …]
|
D | arena.c | 2411 assert(tbin->ncached == 0); in arena_tcache_fill_small() 2452 tbin->ncached = i; in arena_tcache_fill_small()
|
/external/jemalloc_new/src/ |
D | tcache.c | 59 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 …]
|
D | arena.c | 162 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()
|