/external/jemalloc_new/test/unit/ |
D | arena_reset.c | 89 unsigned arena_ind; in do_arena_create() local 91 assert_d_eq(mallctl("arenas.create", (void *)&arena_ind, &sz, in do_arena_create() 94 return arena_ind; in do_arena_create() 98 do_arena_reset_pre(unsigned arena_ind, void ***ptrs, unsigned *nptrs) { in do_arena_reset_pre() argument 105 flags = MALLOCX_ARENA(arena_ind) | MALLOCX_TCACHE_NONE; in do_arena_reset_pre() 137 do_arena_reset_post(void **ptrs, unsigned nptrs, unsigned arena_ind) { in do_arena_reset_post() argument 145 &background_thread_info[arena_ind % ncpus].mtx); in do_arena_reset_post() 154 &background_thread_info[arena_ind % ncpus].mtx); in do_arena_reset_post() 161 do_arena_reset_destroy(const char *name, unsigned arena_ind) { in do_arena_reset_destroy() argument 168 mib[1] = (size_t)arena_ind; in do_arena_reset_destroy() [all …]
|
D | decay.c | 40 unsigned arena_ind; in do_arena_create() local 42 assert_d_eq(mallctl("arenas.create", (void *)&arena_ind, &sz, NULL, 0), in do_arena_create() 49 mib[1] = (size_t)arena_ind; in do_arena_create() 56 mib[1] = (size_t)arena_ind; in do_arena_create() 61 return arena_ind; in do_arena_create() 65 do_arena_destroy(unsigned arena_ind) { in do_arena_destroy() argument 70 mib[1] = (size_t)arena_ind; in do_arena_destroy() 83 do_purge(unsigned arena_ind) { in do_purge() argument 88 mib[1] = (size_t)arena_ind; in do_purge() 94 do_decay(unsigned arena_ind) { in do_decay() argument [all …]
|
D | retained.c | 5 static unsigned arena_ind; variable 15 unsigned arena_ind; in do_arena_create() local 17 assert_d_eq(mallctl("arenas.create", (void *)&arena_ind, &sz, in do_arena_create() 20 return arena_ind; in do_arena_create() 24 do_arena_destroy(unsigned arena_ind) { in do_arena_destroy() argument 31 mib[1] = (size_t)arena_ind; in do_arena_destroy() 44 do_get_size_impl(const char *cmd, unsigned arena_ind) { in do_get_size_impl() argument 51 mib[2] = arena_ind; in do_get_size_impl() 60 do_get_active(unsigned arena_ind) { in do_get_active() argument 61 return do_get_size_impl("stats.arenas.0.pactive", arena_ind) * PAGE; in do_get_active() [all …]
|
D | pack.c | 68 unsigned arena_ind; in arenas_create_mallctl() local 71 sz = sizeof(arena_ind); in arenas_create_mallctl() 72 assert_d_eq(mallctl("arenas.create", (void *)&arena_ind, &sz, NULL, 0), in arenas_create_mallctl() 75 return arena_ind; in arenas_create_mallctl() 79 arena_reset_mallctl(unsigned arena_ind) { in arena_reset_mallctl() argument 85 mib[1] = (size_t)arena_ind; in arena_reset_mallctl() 97 unsigned arena_ind = arenas_create_mallctl(); in TEST_BEGIN() local 106 void *p = mallocx(SZ, MALLOCX_ARENA(arena_ind) | in TEST_BEGIN() 111 SZ, arena_ind, i, j); in TEST_BEGIN() 130 dallocx(p, MALLOCX_ARENA(arena_ind) | in TEST_BEGIN() [all …]
|
D | stats.c | 224 gen_mallctl_str(char *cmd, char *name, unsigned arena_ind) { in gen_mallctl_str() argument 225 sprintf(cmd, "stats.arenas.%u.bins.0.%s", arena_ind, name); in gen_mallctl_str() 239 unsigned arena_ind, old_arena_ind; in TEST_BEGIN() local 241 assert_d_eq(mallctl("arenas.create", (void *)&arena_ind, &sz, NULL, 0), in TEST_BEGIN() 243 sz = sizeof(arena_ind); in TEST_BEGIN() 245 (void *)&arena_ind, sizeof(arena_ind)), 0, in TEST_BEGIN() 259 gen_mallctl_str(cmd, "nmalloc", arena_ind); in TEST_BEGIN() 262 gen_mallctl_str(cmd, "ndalloc", arena_ind); in TEST_BEGIN() 265 gen_mallctl_str(cmd, "nrequests", arena_ind); in TEST_BEGIN() 269 gen_mallctl_str(cmd, "curregs", arena_ind); in TEST_BEGIN() [all …]
|
D | fork.c | 37 unsigned arena_ind; in TEST_BEGIN() local 39 assert_d_eq(mallctl("arenas.create", (void *)&arena_ind, &sz, NULL, 0), in TEST_BEGIN() 46 (void *)&arena_ind, sizeof(arena_ind)), 0, in TEST_BEGIN()
|
D | stats_print.c | 954 unsigned arena_ind, i; in TEST_BEGIN() local 963 size_t sz = sizeof(arena_ind); in TEST_BEGIN() 964 assert_d_eq(mallctl("arenas.create", (void *)&arena_ind, in TEST_BEGIN() 973 mib[1] = arena_ind; in TEST_BEGIN()
|
/external/jemalloc_new/test/include/test/ |
D | extent_hooks.h | 8 unsigned arena_ind); 10 size_t size, bool committed, unsigned arena_ind); 12 size_t size, bool committed, unsigned arena_ind); 14 size_t size, size_t offset, size_t length, unsigned arena_ind); 16 size_t size, size_t offset, size_t length, unsigned arena_ind); 18 size_t size, size_t offset, size_t length, unsigned arena_ind); 20 void *addr, size_t size, size_t offset, size_t length, unsigned arena_ind); 23 unsigned arena_ind); 26 unsigned arena_ind); 82 size_t alignment, bool *zero, bool *commit, unsigned arena_ind) { in extent_alloc_hook() argument [all …]
|
/external/jemalloc_new/test/integration/ |
D | thread_arena.c | 9 unsigned arena_ind; in thd_start() local 17 size = sizeof(arena_ind); in thd_start() 18 if ((err = mallctl("thread.arena", (void *)&arena_ind, &size, in thd_start() 26 size = sizeof(arena_ind); in thd_start() 27 if ((err = mallctl("thread.arena", (void *)&arena_ind, &size, NULL, in thd_start() 34 assert_u_eq(arena_ind, main_arena_ind, in thd_start() 57 unsigned arena_ind, old_arena_ind; in TEST_BEGIN() local 59 assert_d_eq(mallctl("arenas.create", (void *)&arena_ind, &sz, NULL, 0), in TEST_BEGIN() 62 size_t size = sizeof(arena_ind); in TEST_BEGIN() 64 (void *)&arena_ind, sizeof(arena_ind))) != 0) { in TEST_BEGIN() [all …]
|
D | extent.c | 18 test_extent_body(unsigned arena_ind) { in test_extent_body() argument 26 flags = MALLOCX_ARENA(arena_ind) | MALLOCX_TCACHE_NONE; in test_extent_body() 41 purge_mib[1] = (size_t)arena_ind; in test_extent_body() 56 0, "Unexpected arena.%u.purge error", arena_ind); in test_extent_body() 79 0, "Unexpected arena.%u.purge error", arena_ind); in test_extent_body() 140 unsigned arena_ind; in test_manual_hook_body() local 149 assert_d_eq(mallctl("arenas.create", (void *)&arena_ind, &sz, NULL, 0), in test_manual_hook_body() 156 hooks_mib[1] = (size_t)arena_ind; in test_manual_hook_body() 181 test_extent_body(arena_ind); in test_manual_hook_body() 226 unsigned arena_ind; in TEST_BEGIN() local [all …]
|
D | MALLOCX_ARENA.c | 16 unsigned arena_ind; in thd_start() local 20 sz = sizeof(arena_ind); in thd_start() 21 assert_d_eq(mallctl("arenas.create", (void *)&arena_ind, &sz, NULL, 0), in thd_start() 34 mib[1] = arena_ind; in thd_start() 40 p = mallocx(1, MALLOCX_ARENA(arena_ind)); in thd_start()
|
D | xallocx.c | 9 arena_ind(void) { in arena_ind() function 208 int flags = MALLOCX_ARENA(arena_ind()); in TEST_BEGIN() 316 int flags = MALLOCX_ARENA(arena_ind()) | MALLOCX_ZERO; in test_zero()
|
/external/jemalloc_new/include/jemalloc/ |
D | jemalloc_typedefs.h.in | 6 * size_t alignment, bool *zero, bool *commit, unsigned arena_ind); 14 * bool committed, unsigned arena_ind); 22 * bool committed, unsigned arena_ind); 30 * size_t offset, size_t length, unsigned arena_ind); 38 * size_t offset, size_t length, unsigned arena_ind); 46 * size_t offset, size_t length, unsigned arena_ind); 54 * size_t size_a, size_t size_b, bool committed, unsigned arena_ind); 62 * void *addr_b, size_t size_b, bool committed, unsigned arena_ind);
|
/external/jemalloc_new/src/ |
D | ctl.c | 669 ret->arena_ind = (unsigned)i; in arenas_i_impl() 673 assert(ret == NULL || arenas_i2a(ret->arena_ind) == arenas_i2a(i)); in arenas_i_impl() 826 if (ctl_arena->arena_ind == 0) { in ctl_arena_stats_sdmerge() 886 unsigned arena_ind; in ctl_arena_init() local 892 arena_ind = ctl_arena->arena_ind; in ctl_arena_init() 894 arena_ind = ctl_arenas->narenas; in ctl_arena_init() 898 if (arenas_i_impl(tsd, arena_ind, false, true) == NULL) { in ctl_arena_init() 903 if (arena_init(tsd_tsdn(tsd), arena_ind, extent_hooks) == NULL) { in ctl_arena_init() 907 if (arena_ind == ctl_arenas->narenas) { in ctl_arena_init() 911 return arena_ind; in ctl_arena_init() [all …]
|
D | extent.c | 27 unsigned arena_ind); 29 size_t size, bool committed, unsigned arena_ind); 31 size_t size, bool committed, unsigned arena_ind); 33 size_t size, size_t offset, size_t length, unsigned arena_ind); 38 void *addr, size_t size, size_t offset, size_t length, unsigned arena_ind); 41 size_t size, size_t offset, size_t length, unsigned arena_ind); 48 void *addr, size_t size, size_t offset, size_t length, unsigned arena_ind); 56 unsigned arena_ind); 65 unsigned arena_ind); 1197 size_t alignment, bool *zero, bool *commit, unsigned arena_ind) { in extent_alloc_default() argument [all …]
|
D | background_thread.c | 56 bool background_thread_create(tsd_t *tsd, unsigned arena_ind) NOT_REACHED in background_thread_create() argument 539 background_thread_create(tsd_t *tsd, unsigned arena_ind) { 544 size_t thread_ind = arena_ind % max_background_threads; 558 if (arena_ind != 0) {
|
D | stats.c | 145 mutex_stats_read_arena(unsigned arena_ind, mutex_prof_arena_ind_t mutex_ind, in mutex_stats_read_arena() argument 161 CTL_M2_GET(cmd, arena_ind, \ in mutex_stats_read_arena() 170 mutex_stats_read_arena_bin(unsigned arena_ind, unsigned bin_ind, in mutex_stats_read_arena_bin() argument 183 CTL_M2_M4_GET(cmd, arena_ind, bin_ind, \ in mutex_stats_read_arena_bin() 498 stats_arena_mutexes_print(emitter_t *emitter, unsigned arena_ind) { in stats_arena_mutexes_print() argument 514 mutex_stats_read_arena(arena_ind, i, name, &col_name, col64, in stats_arena_mutexes_print()
|
D | jemalloc.c | 1672 unsigned arena_ind; member 1683 dynamic_opts->arena_ind = ARENA_IND_AUTOMATIC; 1709 if (dopts->arena_ind == ARENA_IND_AUTOMATIC) { 1717 arena = arena_get(tsd_tsdn(tsd), dopts->arena_ind, true); 1877 assert(dopts->arena_ind == ARENA_IND_AUTOMATIC); 1880 dopts->arena_ind = 0; 2601 dopts.arena_ind = MALLOCX_ARENA_GET(flags); 2698 unsigned arena_ind = MALLOCX_ARENA_GET(flags); local 2699 arena = arena_get(tsd_tsdn(tsd), arena_ind, true);
|
/external/jemalloc_new/include/jemalloc/internal/ |
D | jemalloc_internal_inlines_a.h | 29 unsigned arena_ind; in percpu_arena_choose() local 32 arena_ind = cpuid; in percpu_arena_choose() 36 arena_ind = cpuid - ncpus / 2; in percpu_arena_choose() 39 return arena_ind; in percpu_arena_choose()
|
D | extent_inlines.h | 39 unsigned arena_ind = (unsigned)((extent->e_bits & in extent_arena_get() local 45 if (false && arena_ind >= MALLOCX_ARENA_LIMIT) { in extent_arena_get() 48 assert(arena_ind < MALLOCX_ARENA_LIMIT); in extent_arena_get() 49 return (arena_t *)atomic_load_p(&arenas[arena_ind], ATOMIC_ACQUIRE); in extent_arena_get() 181 unsigned arena_ind = (arena != NULL) ? arena_ind_get(arena) : ((1U << in extent_arena_set() local 184 ((uint64_t)arena_ind << EXTENT_BITS_ARENA_SHIFT); in extent_arena_set()
|
D | background_thread_inlines.h | 17 unsigned arena_ind = arena_ind_get(arena); in arena_background_thread_info_get() local 18 return &background_thread_info[arena_ind % ncpus]; in arena_background_thread_info_get()
|
D | background_thread_externs.h | 13 bool background_thread_create(tsd_t *tsd, unsigned arena_ind);
|
D | ctl.h | 62 unsigned arena_ind; member
|