Home
last modified time | relevance | path

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

/third_party/ulib/jemalloc/include/jemalloc/internal/
A Dtcache_inlines.h103 if (unlikely(tbin->ncached == 0)) { in tcache_alloc_easy()
116 ret = *(tbin->avail - tbin->ncached); in tcache_alloc_easy()
117 tbin->ncached--; in tcache_alloc_easy()
119 if (unlikely((int)tbin->ncached < tbin->low_water)) in tcache_alloc_easy()
120 tbin->low_water = tbin->ncached; in tcache_alloc_easy()
257 assert(tbin->ncached < tbin_info->ncached_max); in tcache_dalloc_small()
258 tbin->ncached++; in tcache_dalloc_small()
259 *(tbin->avail - tbin->ncached) = ptr; in tcache_dalloc_small()
286 assert(tbin->ncached < tbin_info->ncached_max); in tcache_dalloc_large()
287 tbin->ncached++; in tcache_dalloc_large()
[all …]
A Dtcache_structs.h22 unsigned ncached; /* # of cached objects. */ member
/third_party/ulib/jemalloc/src/
A 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()
97 assert(rem <= tbin->ncached); in tcache_bin_flush_small()
160 tbin->ncached = rem; in tcache_bin_flush_small()
161 if ((int)tbin->ncached < tbin->low_water) in tcache_bin_flush_small()
162 tbin->low_water = tbin->ncached; in tcache_bin_flush_small()
175 assert(rem <= tbin->ncached); in tcache_bin_flush_large()
243 tbin->ncached = rem; in tcache_bin_flush_large()
244 if ((int)tbin->ncached < tbin->low_water) in tcache_bin_flush_large()
[all …]
A Darena.c1107 assert(tbin->ncached == 0); in arena_tcache_fill_small()
1150 tbin->ncached = i; in arena_tcache_fill_small()
1638 astats->tcache_bytes += tbin->ncached * in arena_stats_merge()

Completed in 10 milliseconds