| /redis-3.2.3/deps/jemalloc/src/ |
| H A D | tcache.c | 67 tcache->next_gc_bin++; in tcache_event_hard() 70 tcache->ev_cnt = 0; in tcache_event_hard() 315 tcache_t *tcache; in tcache_create() local 328 if (tcache == NULL) in tcache_create() 336 tcache->tbins[i].avail = (void **)((uintptr_t)tcache + in tcache_create() 341 return (tcache); in tcache_create() 388 tcache_t *tcache; in tcache_cleanup() local 436 tcache_t *tcache; in tcaches_create() local 449 if (tcache == NULL) in tcaches_create() 455 elm->tcache = tcache; in tcaches_create() [all …]
|
| H A D | huge.c | 35 tcache_t *tcache) in huge_malloc() argument 50 bool zero, tcache_t *tcache) in huge_palloc() argument 66 CACHELINE, false, tcache, true, arena); in huge_palloc() 78 idalloctm(tsd, node, tcache, true); in huge_palloc() 86 idalloctm(tsd, node, tcache, true); in huge_palloc() 323 size_t alignment, bool zero, tcache_t *tcache) in huge_ralloc_move_helper() argument 333 size_t alignment, bool zero, tcache_t *tcache) in huge_ralloc() argument 348 tcache); in huge_ralloc() 354 isqalloc(tsd, ptr, oldsize, tcache); in huge_ralloc() 359 huge_dalloc(tsd_t *tsd, void *ptr, tcache_t *tcache) in huge_dalloc() argument [all …]
|
| H A D | jemalloc.c | 701 tcache_t *tcache; in stats_print_atexit() local 1930 *tcache = NULL; in imallocx_flags_decode_hard() 2002 tcache_t *tcache; in imallocx_prof() local 2033 tcache_t *tcache; in imallocx_no_prof() local 2105 tcache, arena); in irallocx_prof_sample() 2165 tcache_t *tcache; in je_rallocx() local 2183 tcache = NULL; in je_rallocx() 2363 tcache_t *tcache; in je_dallocx() local 2371 tcache = NULL; in je_dallocx() 2398 tcache_t *tcache; in je_sdallocx() local [all …]
|
| H A D | prof.c | 777 tcache_t *tcache; in prof_lookup() local 791 tcache = tcache_get(tsd, true); in prof_lookup() 813 idalloctm(tsd, ret.v, tcache, true); in prof_lookup() 1711 tcache_t *tcache; in prof_tdata_init_impl() local 1716 tcache = tcache_get(tsd, true); in prof_tdata_init_impl() 1718 tcache, true, NULL); in prof_tdata_init_impl() 1732 idalloctm(tsd, tdata, tcache, true); in prof_tdata_init_impl() 1778 tcache_t *tcache; in prof_tdata_destroy_locked() local 1785 tcache = tcache_get(tsd, false); in prof_tdata_destroy_locked() 1787 idalloctm(tsd, tdata->thread_name, tcache, true); in prof_tdata_destroy_locked() [all …]
|
| H A D | arena.c | 2352 bool zero, tcache_t *tcache) in arena_palloc() argument 2359 ret = arena_malloc(tsd, arena, usize, zero, tcache); in arena_palloc() 2367 ret = arena_malloc(tsd, arena, usize, zero, tcache); in arena_palloc() 2375 ret = huge_malloc(tsd, arena, usize, zero, tcache); in arena_palloc() 2378 tcache); in arena_palloc() 2836 size_t alignment, bool zero, tcache_t *tcache) in arena_ralloc_move_helper() argument 2840 return (arena_malloc(tsd, arena, usize, zero, tcache)); in arena_ralloc_move_helper() 2849 size_t alignment, bool zero, tcache_t *tcache) in arena_ralloc() argument 2871 zero, tcache); in arena_ralloc() 2883 isqalloc(tsd, ptr, oldsize, tcache); in arena_ralloc() [all …]
|
| H A D | ctl.c | 480 {NAME("tcache"), CHILD(named, tcache)}, 1325 tcache_t *tcache = tsd_tcache_get(tsd); in CTL_RO_BOOL_CONFIG_GEN() local 1326 if (tcache != NULL) { in CTL_RO_BOOL_CONFIG_GEN() 1327 tcache_arena_reassociate(tcache, oldarena, in CTL_RO_BOOL_CONFIG_GEN()
|
| H A D | stats.c | 496 OPT_WRITE_BOOL(tcache) in stats_print()
|
| /redis-3.2.3/deps/jemalloc/include/jemalloc/internal/ |
| H A D | tcache.h | 93 tcache_t *tcache; member 220 tcache_t *tcache; in tcache_get() local 225 tcache = tsd_tcache_get(tsd); in tcache_get() 227 return (tcache); in tcache_get() 233 return (tcache); in tcache_get() 243 tcache->ev_cnt++; in tcache_event() 306 tcache_event(tsd, tcache); in tcache_alloc_small() 358 tcache_event(tsd, tcache); in tcache_alloc_large() 383 tcache_event(tsd, tcache); in tcache_dalloc_small() 412 tcache_event(tsd, tcache); in tcache_dalloc_large() [all …]
|
| H A D | huge.h | 13 tcache_t *tcache); 15 bool zero, tcache_t *tcache); 19 size_t usize, size_t alignment, bool zero, tcache_t *tcache); 24 void huge_dalloc(tsd_t *tsd, void *ptr, tcache_t *tcache);
|
| H A D | jemalloc_internal.h.in | 193 * t: tcache 373 #include "jemalloc/internal/tcache.h" 405 #include "jemalloc/internal/tcache.h" 485 #include "jemalloc/internal/tcache.h" 812 #include "jemalloc/internal/tcache.h" 943 tcache_t *tcache, arena_t *arena) argument 1005 arena_dalloc(tsd, ptr, tcache); 1012 idalloctm(tsd, ptr, tcache, false); 1046 isdalloct(tsd, ptr, size, tcache); 1096 zero, tcache, arena)); [all …]
|
| H A D | arena.h | 467 size_t alignment, bool zero, tcache_t *tcache); 562 tcache_t *tcache); 1162 tcache_t *tcache) in arena_malloc() argument 1172 if (likely(tcache != NULL)) { in arena_malloc() 1268 if (likely(tcache != NULL)) { in arena_dalloc() 1271 tcache_dalloc_small(tsd, tcache, ptr, binind); in arena_dalloc() 1285 tcache_dalloc_large(tsd, tcache, ptr, size - in arena_dalloc() 1293 huge_dalloc(tsd, ptr, tcache); in arena_dalloc() 1320 if (likely(tcache != NULL)) { in arena_sdalloc() 1334 tcache_dalloc_large(tsd, tcache, ptr, size); in arena_sdalloc() [all …]
|
| H A D | tsd.h | 535 O(tcache, tcache_t *) \
|
| /redis-3.2.3/deps/jemalloc/include/jemalloc/ |
| H A D | jemalloc_macros.h.in | 23 * Bias tcache index bits so that 0 encodes "automatic tcache management", and 1
|
| /redis-3.2.3/deps/jemalloc/test/unit/ |
| H A D | mallctl.c | 138 TEST_MALLCTL_CONFIG(tcache); in TEST_BEGIN() 174 TEST_MALLCTL_OPT(bool, tcache, tcache); in TEST_BEGIN() 175 TEST_MALLCTL_OPT(size_t, lg_tcache_max, tcache); in TEST_BEGIN()
|
| /redis-3.2.3/deps/jemalloc/ |
| H A D | ChangeLog | 113 - Add support for explicit tcaches. The "tcache.create", "tcache.flush", and 114 "tcache.destroy" mallctls control tcache lifetime and flushing, and the 116 control which tcache is used for each operation. 446 - Disable tcache by default if running inside Valgrind, in order to avoid 456 - Fix error return value for "thread.tcache.enabled" mallctl. 484 - Add the "thread.tcache.enabled" mallctl. 496 - Rename the "tcache.flush" mallctl to "thread.tcache.flush". 544 - Fix build issues for --disable-tcache. 579 - Fix a build error for --disable-tcache. 744 - Fix crash in tcache flushing code during thread destruction. [all …]
|
| H A D | INSTALL | 143 --disable-tcache 146 the "opt.tcache" option for usage details.
|
| H A D | Makefile.in | 88 $(srcroot)src/stats.c $(srcroot)src/tcache.c $(srcroot)src/util.c \
|
| H A D | configure.ac | 852 AC_ARG_ENABLE([tcache], optenable 853 [AS_HELP_STRING([--disable-tcache], [Disable per thread caches])], 1736 AC_MSG_RESULT([tcache : ${enable_tcache}])
|
| H A D | configure | 1418 --disable-tcache Disable per thread caches 9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: tcache : ${enable_tcache}" >&5 9684 $as_echo "tcache : ${enable_tcache}" >&6; }
|