Home
last modified time | relevance | path

Searched refs:tcache (Results 1 – 22 of 22) sorted by relevance

/f-stack/app/redis-5.0.5/deps/jemalloc/src/
H A Dtcache.c81 tcache->next_gc_bin++; in tcache_event_hard()
298 &tcache->cache_bin_array_descriptor, tcache->bins_small, in tcache_arena_associate()
331 tcache->arena = NULL; in tcache_arena_dissociate()
360 tcache->arena = NULL; in tcache_init()
433 tcache_t *tcache; in tcache_create_explicit() local
454 return tcache; in tcache_create_explicit()
600 elm->tcache = tcache; in tcaches_create()
604 elm->tcache = tcache; in tcaches_create()
623 tcache_t *tcache = elm->tcache; in tcaches_elm_remove() local
624 elm->tcache = NULL; in tcaches_elm_remove()
[all …]
H A Djemalloc.c1674 tcache_t *tcache; in imalloc_no_sample() local
1687 tcache = NULL; in imalloc_no_sample()
2306 tcache = NULL; in je_realloc()
2398 tcache = NULL; in je_free()
2669 tcache_t *tcache; in je_rallocx() local
2693 tcache = NULL; in je_rallocx()
2930 tcache_t *tcache; in je_dallocx() local
2935 tcache = NULL; in je_dallocx()
2947 tcache = NULL; in je_dallocx()
2992 tcache_t *tcache; in je_sdallocx() local
[all …]
H A Darena.c1390 bool zero, tcache_t *tcache) { in arena_palloc() argument
1397 zero, tcache, true); in arena_palloc()
1457 tcache_dalloc_large(tsdn_tsd(tsdn), tcache, ptr, in arena_dalloc_promoted()
1622 zero, tcache, true); in arena_ralloc_move_helper()
1648 alignment, zero, tcache); in arena_ralloc()
1656 zero, tcache); in arena_ralloc()
2016 tcache_t *tcache = tcache_get(tsdn_tsd(tsdn)); in arena_postfork_child() local
2017 if (tcache != NULL && tcache->arena == arena) { in arena_postfork_child()
2018 ql_elm_new(tcache, link); in arena_postfork_child()
2021 &tcache->cache_bin_array_descriptor, in arena_postfork_child()
[all …]
H A Dlarge.c274 size_t alignment, bool zero, tcache_t *tcache) { in large_ralloc() argument
300 isdalloct(tsdn, extent_addr_get(extent), oldusize, tcache, NULL, true); in large_ralloc()
H A Dctl.c547 {NAME("tcache"), CHILD(named, tcache)},
/f-stack/app/redis-5.0.5/deps/jemalloc/include/jemalloc/internal/
H A Dtcache_inlines.h31 tcache_event(tsd_t *tsd, tcache_t *tcache) { in tcache_event() argument
37 tcache_event_hard(tsd, tcache); in tcache_event()
50 bin = tcache_small_bin_get(tcache, binind); in tcache_alloc_small()
97 tcache->prof_accumbytes += usize; in tcache_alloc_small()
99 tcache_event(tsd, tcache); in tcache_alloc_small()
155 tcache->prof_accumbytes += usize; in tcache_alloc_large()
159 tcache_event(tsd, tcache); in tcache_alloc_large()
185 tcache_event(tsd, tcache); in tcache_dalloc_small()
211 tcache_event(tsd, tcache); in tcache_dalloc_large()
217 if (unlikely(elm->tcache == NULL)) { in tcaches_get()
[all …]
H A Djemalloc_internal_inlines_c.h46 assert(!is_internal || tcache == NULL); in iallocztm()
68 tcache_t *tcache, bool is_internal, arena_t *arena) { in ipallocztm() argument
73 assert(!is_internal || tcache == NULL); in ipallocztm()
88 tcache_t *tcache, arena_t *arena) { in ipalloct() argument
107 assert(!is_internal || tcache == NULL); in idalloctm()
116 assert(tcache == NULL); in idalloctm()
118 arena_dalloc(tsdn, ptr, tcache, alloc_ctx, slow_path); in idalloctm()
168 isdalloct(tsdn, ptr, oldsize, tcache, NULL, true); in iralloct_realign()
174 bool zero, tcache_t *tcache, arena_t *arena) { in iralloct() argument
187 zero, tcache, arena); in iralloct()
[all …]
H A Dtcache_externs.h31 void tcache_event_hard(tsd_t *tsd, tcache_t *tcache);
32 void *tcache_alloc_small_hard(tsdn_t *tsdn, arena_t *arena, tcache_t *tcache,
34 void tcache_bin_flush_small(tsd_t *tsd, tcache_t *tcache, cache_bin_t *tbin,
37 unsigned rem, tcache_t *tcache);
38 void tcache_arena_reassociate(tsdn_t *tsdn, tcache_t *tcache,
42 void tcache_stats_merge(tsdn_t *tsdn, tcache_t *tcache, arena_t *arena);
47 void tcache_arena_associate(tsdn_t *tsdn, tcache_t *tcache, arena_t *arena);
H A Darena_inlines_b.h88 tcache_t *tcache, bool slow_path) { in arena_malloc() argument
89 assert(!tsdn_null(tsdn) || tcache == NULL); in arena_malloc()
92 if (likely(tcache != NULL)) { in arena_malloc()
95 tcache, size, ind, zero, slow_path); in arena_malloc()
99 tcache, size, ind, zero, slow_path); in arena_malloc()
192 assert(!tsdn_null(tsdn) || tcache == NULL); in arena_dalloc()
195 if (unlikely(tcache == NULL)) { in arena_dalloc()
229 arena_dalloc_promoted(tsdn, ptr, tcache, in arena_dalloc()
289 assert(!tsdn_null(tsdn) || tcache == NULL); in arena_sdalloc()
293 if (unlikely(tcache == NULL)) { in arena_sdalloc()
[all …]
H A Djemalloc_internal_inlines_b.h25 tcache_t *tcache = tcache_get(tsd); in arena_choose_impl() local
26 if (tcache->arena != NULL) { in arena_choose_impl()
28 assert(tcache->arena == in arena_choose_impl()
30 if (tcache->arena != ret) { in arena_choose_impl()
32 tcache, ret); in arena_choose_impl()
35 tcache_arena_associate(tsd_tsdn(tsd), tcache, in arena_choose_impl()
H A Darena_inlines_a.h49 tcache_t *tcache = tcache_get(tsd); in percpu_arena_update() local
50 if (tcache != NULL) { in percpu_arena_update()
51 tcache_arena_reassociate(tsd_tsdn(tsd), tcache, in percpu_arena_update()
H A Djemalloc_internal_inlines_a.h110 tcache_small_bin_get(tcache_t *tcache, szind_t binind) { in tcache_small_bin_get() argument
112 return &tcache->bins_small[binind]; in tcache_small_bin_get()
116 tcache_large_bin_get(tcache_t *tcache, szind_t binind) { in tcache_large_bin_get() argument
118 return &tcache->bins_large[binind - NBINS]; in tcache_large_bin_get()
H A Darena_externs.h47 void arena_tcache_fill_small(tsdn_t *tsdn, arena_t *arena, tcache_t *tcache,
58 size_t alignment, bool zero, tcache_t *tcache);
60 void arena_dalloc_promoted(tsdn_t *tsdn, void *ptr, tcache_t *tcache,
68 size_t size, size_t alignment, bool zero, tcache_t *tcache);
H A Dtcache_structs.h56 tcache_t *tcache; member
H A Dlarge_externs.h10 size_t alignment, bool zero, tcache_t *tcache);
H A Dtsd.h76 O(tcache, tcache_t, tcache_t) \
/f-stack/app/redis-5.0.5/deps/jemalloc/
H A D.travis.yml25 …env: CC=gcc CXX=g++ COMPILER_FLAGS="" CONFIGURE_FLAGS="--with-malloc-conf=tcache:false" EXTRA_CFLA…
41 …env: CC=gcc CXX=g++ COMPILER_FLAGS="" CONFIGURE_FLAGS="--with-malloc-conf=tcache:false" EXTRA_CFLA…
55 …env: CC=clang CXX=clang++ COMPILER_FLAGS="" CONFIGURE_FLAGS="--with-malloc-conf=tcache:false" EXTR…
81 …env: CC=gcc CXX=g++ COMPILER_FLAGS="-m32" CONFIGURE_FLAGS="--with-malloc-conf=tcache:false" EXTRA_…
109 …g++ COMPILER_FLAGS="" CONFIGURE_FLAGS="--enable-debug --with-malloc-conf=tcache:false" EXTRA_CFLAG…
119 …=g++ COMPILER_FLAGS="" CONFIGURE_FLAGS="--enable-prof --with-malloc-conf=tcache:false" EXTRA_CFLAG…
127 …++ COMPILER_FLAGS="" CONFIGURE_FLAGS="--disable-stats --with-malloc-conf=tcache:false" EXTRA_CFLAG…
135 …env: CC=gcc CXX=g++ COMPILER_FLAGS="" CONFIGURE_FLAGS="--with-malloc-conf=tcache:false,dss:primary…
137 …env: CC=gcc CXX=g++ COMPILER_FLAGS="" CONFIGURE_FLAGS="--with-malloc-conf=tcache:false,percpu_aren…
139 …env: CC=gcc CXX=g++ COMPILER_FLAGS="" CONFIGURE_FLAGS="--with-malloc-conf=tcache:false,background_…
H A DChangeLog79 - Refactor arena / tcache interactions. (@davidtgoldblatt)
295 - Remove --disable-tcache. (@jasone)
308 + config.tcache
707 - Add support for explicit tcaches. The "tcache.create", "tcache.flush", and
708 "tcache.destroy" mallctls control tcache lifetime and flushing, and the
710 control which tcache is used for each operation.
1078 - Add the "thread.tcache.enabled" mallctl.
1090 - Rename the "tcache.flush" mallctl to "thread.tcache.flush".
1138 - Fix build issues for --disable-tcache.
1173 - Fix a build error for --disable-tcache.
[all …]
H A DTUNING.md93 `narenas:1,tcache:false,dirty_decay_ms:0,muzzy_decay_ms:0`
H A DMakefile.in118 $(srcroot)src/tcache.c \
/f-stack/app/redis-5.0.5/deps/jemalloc/include/jemalloc/
H A Djemalloc_macros.h.in24 * Bias tcache index bits so that 0 encodes "automatic tcache management", and 1
/f-stack/app/redis-5.0.5/deps/jemalloc/test/unit/
H A Dmallctl.c174 TEST_MALLCTL_OPT(bool, tcache, always); in TEST_BEGIN()