/external/jemalloc_new/test/unit/ |
D | mallctl.c | 34 size_t miblen; in TEST_BEGIN() local 36 miblen = sizeof(mib)/sizeof(size_t); in TEST_BEGIN() 37 assert_d_eq(mallctlnametomib("no_such_name", mib, &miblen), ENOENT, in TEST_BEGIN() 46 size_t miblen; in TEST_BEGIN() local 48 miblen = sizeof(mib)/sizeof(size_t); in TEST_BEGIN() 49 assert_d_eq(mallctlnametomib("version", mib, &miblen), 0, in TEST_BEGIN() 52 assert_d_eq(mallctlbymib(mib, miblen, NULL, NULL, "0.0.0", in TEST_BEGIN() 56 miblen = sizeof(mib)/sizeof(size_t); in TEST_BEGIN() 57 assert_d_eq(mallctlnametomib("epoch", mib, &miblen), 0, in TEST_BEGIN() 60 assert_d_eq(mallctlbymib(mib, miblen, NULL, NULL, (void *)&epoch, in TEST_BEGIN() [all …]
|
D | decay.c | 45 size_t miblen = sizeof(mib)/sizeof(size_t); in do_arena_create() local 47 assert_d_eq(mallctlnametomib("arena.0.dirty_decay_ms", mib, &miblen), in do_arena_create() 50 assert_d_eq(mallctlbymib(mib, miblen, NULL, NULL, in do_arena_create() 54 assert_d_eq(mallctlnametomib("arena.0.muzzy_decay_ms", mib, &miblen), in do_arena_create() 57 assert_d_eq(mallctlbymib(mib, miblen, NULL, NULL, in do_arena_create() 67 size_t miblen = sizeof(mib)/sizeof(size_t); in do_arena_destroy() local 68 assert_d_eq(mallctlnametomib("arena.0.destroy", mib, &miblen), 0, in do_arena_destroy() 71 assert_d_eq(mallctlbymib(mib, miblen, NULL, NULL, NULL, 0), 0, in do_arena_destroy() 85 size_t miblen = sizeof(mib)/sizeof(size_t); in do_purge() local 86 assert_d_eq(mallctlnametomib("arena.0.purge", mib, &miblen), 0, in do_purge() [all …]
|
D | pack.c | 30 size_t miblen = sizeof(mib)/sizeof(size_t); in binind_compute() local 34 &miblen), 0, "Unexpected mallctlnametomb failure"); in binind_compute() 38 assert_d_eq(mallctlbymib(mib, miblen, (void *)&size, &sz, NULL, in binind_compute() 55 size_t miblen = sizeof(mib)/sizeof(size_t); in nregs_per_run_compute() local 57 assert_d_eq(mallctlnametomib("arenas.bin.0.nregs", mib, &miblen), 0, in nregs_per_run_compute() 61 assert_d_eq(mallctlbymib(mib, miblen, (void *)&nregs, &sz, NULL, in nregs_per_run_compute() 81 size_t miblen = sizeof(mib)/sizeof(size_t); in arena_reset_mallctl() local 83 assert_d_eq(mallctlnametomib("arena.0.reset", mib, &miblen), 0, in arena_reset_mallctl() 86 assert_d_eq(mallctlbymib(mib, miblen, NULL, NULL, NULL, 0), 0, in arena_reset_mallctl()
|
D | arena_reset.c | 37 size_t miblen = 4; in get_size_impl() local 40 assert_d_eq(mallctlnametomib(cmd, mib, &miblen), in get_size_impl() 44 assert_d_eq(mallctlbymib(mib, miblen, (void *)&ret, &z, NULL, 0), in get_size_impl() 163 size_t miblen; in do_arena_reset_destroy() local 165 miblen = sizeof(mib)/sizeof(size_t); in do_arena_reset_destroy() 166 assert_d_eq(mallctlnametomib(name, mib, &miblen), 0, in do_arena_reset_destroy() 169 assert_d_eq(mallctlbymib(mib, miblen, NULL, NULL, NULL, 0), 0, in do_arena_reset_destroy() 199 size_t miblen, sz; in arena_i_initialized() local 207 miblen = sizeof(mib)/sizeof(size_t); in arena_i_initialized() 208 assert_d_eq(mallctlnametomib("arena.0.initialized", mib, &miblen), 0, in arena_i_initialized() [all …]
|
D | retained.c | 26 size_t miblen; in do_arena_destroy() local 28 miblen = sizeof(mib)/sizeof(size_t); in do_arena_destroy() 29 assert_d_eq(mallctlnametomib("arena.0.destroy", mib, &miblen), 0, in do_arena_destroy() 32 assert_d_eq(mallctlbymib(mib, miblen, NULL, NULL, NULL, 0), 0, in do_arena_destroy() 46 size_t miblen = sizeof(mib) / sizeof(size_t); in do_get_size_impl() local 49 assert_d_eq(mallctlnametomib(cmd, mib, &miblen), in do_get_size_impl() 53 assert_d_eq(mallctlbymib(mib, miblen, (void *)&size, &z, NULL, 0), in do_get_size_impl()
|
D | extent_quantize.c | 7 size_t miblen = sizeof(mib) / sizeof(size_t); in TEST_BEGIN() local 18 assert_d_eq(mallctlnametomib("arenas.bin.0.slab_size", mib, &miblen), 0, in TEST_BEGIN() 23 assert_d_eq(mallctlbymib(mib, miblen, (void *)&extent_size, &sz, in TEST_BEGIN() 42 size_t miblen = sizeof(mib) / sizeof(size_t); in TEST_BEGIN() local 57 assert_d_eq(mallctlnametomib("arenas.lextent.0.size", mib, &miblen), 0, in TEST_BEGIN() 64 assert_d_eq(mallctlbymib(mib, miblen, (void *)&lextent_size, in TEST_BEGIN()
|
D | size_classes.c | 7 size_t sz, miblen, max_size_class; in get_max_size_class() local 13 miblen = sizeof(mib) / sizeof(size_t); in get_max_size_class() 14 assert_d_eq(mallctlnametomib("arenas.lextent.0.size", mib, &miblen), 0, in get_max_size_class() 19 assert_d_eq(mallctlbymib(mib, miblen, (void *)&max_size_class, &sz, in get_max_size_class()
|
/external/jemalloc/test/unit/ |
D | mallctl.c | 34 size_t miblen; in TEST_BEGIN() local 36 miblen = sizeof(mib)/sizeof(size_t); in TEST_BEGIN() 37 assert_d_eq(mallctlnametomib("no_such_name", mib, &miblen), ENOENT, in TEST_BEGIN() 47 size_t miblen; in TEST_BEGIN() local 49 miblen = sizeof(mib)/sizeof(size_t); in TEST_BEGIN() 50 assert_d_eq(mallctlnametomib("version", mib, &miblen), 0, in TEST_BEGIN() 53 assert_d_eq(mallctlbymib(mib, miblen, NULL, NULL, "0.0.0", in TEST_BEGIN() 57 miblen = sizeof(mib)/sizeof(size_t); in TEST_BEGIN() 58 assert_d_eq(mallctlnametomib("epoch", mib, &miblen), 0, in TEST_BEGIN() 61 assert_d_eq(mallctlbymib(mib, miblen, NULL, NULL, (void *)&epoch, in TEST_BEGIN() [all …]
|
D | pack.c | 39 size_t miblen = sizeof(mib)/sizeof(size_t); in binind_compute() local 43 &miblen), 0, "Unexpected mallctlnametomb failure"); in binind_compute() 47 assert_d_eq(mallctlbymib(mib, miblen, (void *)&size, &sz, NULL, in binind_compute() 64 size_t miblen = sizeof(mib)/sizeof(size_t); in nregs_per_run_compute() local 66 assert_d_eq(mallctlnametomib("arenas.bin.0.nregs", mib, &miblen), 0, in nregs_per_run_compute() 70 assert_d_eq(mallctlbymib(mib, miblen, (void *)&nregs, &sz, NULL, in nregs_per_run_compute() 81 size_t miblen = sizeof(mib)/sizeof(size_t); in npages_per_run_compute() local 84 assert_d_eq(mallctlnametomib("arenas.bin.0.run_size", mib, &miblen), 0, in npages_per_run_compute() 88 assert_d_eq(mallctlbymib(mib, miblen, (void *)&run_size, &sz, NULL, in npages_per_run_compute() 124 size_t miblen = sizeof(mib)/sizeof(size_t); in arena_reset_mallctl() local [all …]
|
D | arena_reset.c | 47 size_t miblen = 4; in get_size_impl() local 50 assert_d_eq(mallctlnametomib(cmd, mib, &miblen), in get_size_impl() 54 assert_d_eq(mallctlbymib(mib, miblen, (void *)&ret, &z, NULL, 0), in get_size_impl() 85 size_t sz, miblen; in TEST_BEGIN() local 136 miblen = sizeof(mib)/sizeof(size_t); in TEST_BEGIN() 137 assert_d_eq(mallctlnametomib("arena.0.reset", mib, &miblen), 0, in TEST_BEGIN() 140 assert_d_eq(mallctlbymib(mib, miblen, NULL, NULL, NULL, 0), 0, in TEST_BEGIN()
|
D | run_quantize.c | 8 size_t miblen = sizeof(mib) / sizeof(size_t); in TEST_BEGIN() local 19 assert_d_eq(mallctlnametomib("arenas.bin.0.run_size", mib, &miblen), 0, in TEST_BEGIN() 24 assert_d_eq(mallctlbymib(mib, miblen, (void *)&run_size, &sz, in TEST_BEGIN() 42 size_t miblen = sizeof(mib) / sizeof(size_t); in TEST_BEGIN() local 57 assert_d_eq(mallctlnametomib("arenas.lrun.0.size", mib, &miblen), 0, in TEST_BEGIN() 64 assert_d_eq(mallctlbymib(mib, miblen, (void *)&lrun_size, &sz, in TEST_BEGIN()
|
D | size_classes.c | 8 size_t sz, miblen, max_size_class; in get_max_size_class() local 14 miblen = sizeof(mib) / sizeof(size_t); in get_max_size_class() 15 assert_d_eq(mallctlnametomib("arenas.hchunk.0.size", mib, &miblen), 0, in get_max_size_class() 20 assert_d_eq(mallctlbymib(mib, miblen, (void *)&max_size_class, &sz, in get_max_size_class()
|
/external/jemalloc/test/integration/ |
D | overflow.c | 7 size_t sz, miblen, max_size_class; in TEST_BEGIN() local 14 miblen = sizeof(mib) / sizeof(size_t); in TEST_BEGIN() 15 assert_d_eq(mallctlnametomib("arenas.hchunk.0.size", mib, &miblen), 0, in TEST_BEGIN() 20 assert_d_eq(mallctlbymib(mib, miblen, (void *)&max_size_class, &sz, in TEST_BEGIN()
|
D | MALLOCX_ARENA.c | 27 size_t miblen = sizeof(mib) / sizeof(size_t); in thd_start() local 33 assert_d_eq(mallctlnametomib("arena.0.dss", mib, &miblen), 0, in thd_start() 36 assert_d_eq(mallctlbymib(mib, miblen, NULL, NULL, (void *)&dss, in thd_start()
|
D | mallocx.c | 33 size_t miblen = 4; in get_size_impl() local 36 assert_d_eq(mallctlnametomib(cmd, mib, &miblen), in get_size_impl() 40 assert_d_eq(mallctlbymib(mib, miblen, (void *)&ret, &z, NULL, 0), in get_size_impl()
|
D | rallocx.c | 29 size_t miblen = 4; in get_size_impl() local 32 assert_d_eq(mallctlnametomib(cmd, mib, &miblen), in get_size_impl() 36 assert_d_eq(mallctlbymib(mib, miblen, (void *)&ret, &z, NULL, 0), in get_size_impl()
|
/external/jemalloc_new/test/integration/ |
D | overflow.c | 6 size_t sz, miblen, max_size_class; in TEST_BEGIN() local 13 miblen = sizeof(mib) / sizeof(size_t); in TEST_BEGIN() 14 assert_d_eq(mallctlnametomib("arenas.lextent.0.size", mib, &miblen), 0, in TEST_BEGIN() 19 assert_d_eq(mallctlbymib(mib, miblen, (void *)&max_size_class, &sz, in TEST_BEGIN()
|
D | MALLOCX_ARENA.c | 26 size_t miblen = sizeof(mib) / sizeof(size_t); in thd_start() local 32 assert_d_eq(mallctlnametomib("arena.0.dss", mib, &miblen), 0, in thd_start() 35 assert_d_eq(mallctlbymib(mib, miblen, NULL, NULL, (void *)&dss, in thd_start()
|
D | mallocx.c | 25 size_t miblen = 4; in get_size_impl() local 28 assert_d_eq(mallctlnametomib(cmd, mib, &miblen), in get_size_impl() 32 assert_d_eq(mallctlbymib(mib, miblen, (void *)&ret, &z, NULL, 0), in get_size_impl()
|
D | rallocx.c | 25 size_t miblen = 4; in get_size_impl() local 28 assert_d_eq(mallctlnametomib(cmd, mib, &miblen), in get_size_impl() 32 assert_d_eq(mallctlbymib(mib, miblen, (void *)&ret, &z, NULL, 0), in get_size_impl()
|
/external/jemalloc_new/src/ |
D | ctl.c | 50 static int n##_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, \ 55 const size_t *mib, size_t miblen, size_t i); 1219 ctl_bymib(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp, in ctl_bymib() argument 1232 for (i = 0; i < miblen; i++) { in ctl_bymib() 1247 node = inode->index(tsd_tsdn(tsd), mib, miblen, mib[i]); in ctl_bymib() 1257 ret = node->ctl(tsd, mib, miblen, oldp, oldlenp, newp, newlen); in ctl_bymib() 1356 n##_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp, \ 1381 n##_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp, \ 1402 n##_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp, \ 1424 n##_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp, \ [all …]
|
D | stats.c | 30 size_t miblen = sizeof(mib) / sizeof(size_t); \ 32 xmallctlnametomib(n, mib, &miblen); \ 34 xmallctlbymib(mib, miblen, (void *)v, &sz, NULL, 0); \ 39 size_t miblen = sizeof(mib) / sizeof(size_t); \ 41 xmallctlnametomib(n, mib, &miblen); \ 44 xmallctlbymib(mib, miblen, (void *)v, &sz, NULL, 0); \ 1160 size_t miblen = sizeof(mib) / sizeof(size_t); in stats_print_helper() local 1166 xmallctlnametomib("arena.0.initialized", mib, &miblen); in stats_print_helper() 1170 xmallctlbymib(mib, miblen, &initialized[i], &sz, in stats_print_helper() 1178 xmallctlbymib(mib, miblen, &destroyed_initialized, &sz, in stats_print_helper()
|
/external/jemalloc/src/ |
D | ctl.c | 45 static int n##_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, \ 50 const size_t *mib, size_t miblen, size_t i); 962 ctl_bymib(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp, in ctl_bymib() argument 976 for (i = 0; i < miblen; i++) { in ctl_bymib() 991 node = inode->index(tsd_tsdn(tsd), mib, miblen, mib[i]); in ctl_bymib() 1001 ret = node->ctl(tsd, mib, miblen, oldp, oldlenp, newp, newlen); in ctl_bymib() 1098 n##_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp, \ 1121 n##_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp, \ 1142 n##_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp, \ 1165 n##_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp, \ [all …]
|
/external/jemalloc/include/jemalloc/internal/ |
D | ctl.h | 78 int ctl_bymib(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp, 103 #define xmallctlbymib(mib, miblen, oldp, oldlenp, newp, newlen) do { \ argument 104 if (je_mallctlbymib(mib, miblen, oldp, oldlenp, newp, \
|
/external/jemalloc_new/include/jemalloc/internal/ |
D | ctl.h | 97 int ctl_bymib(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp, 122 #define xmallctlbymib(mib, miblen, oldp, oldlenp, newp, newlen) do { \ argument 123 if (je_mallctlbymib(mib, miblen, oldp, oldlenp, newp, \
|