/external/jemalloc_new/test/unit/ |
D | mallctl.c | 9 assert_d_eq(mallctl("no_such_name", NULL, NULL, NULL, 0), ENOENT, in TEST_BEGIN() 12 assert_d_eq(mallctl("version", NULL, NULL, "0.0.0", strlen("0.0.0")), in TEST_BEGIN() 16 assert_d_eq(mallctl("epoch", NULL, NULL, (void *)&epoch, in TEST_BEGIN() 19 assert_d_eq(mallctl("epoch", NULL, NULL, (void *)&epoch, in TEST_BEGIN() 24 assert_d_eq(mallctl("epoch", (void *)&epoch, &sz, NULL, 0), EINVAL, in TEST_BEGIN() 27 assert_d_eq(mallctl("epoch", (void *)&epoch, &sz, NULL, 0), EINVAL, in TEST_BEGIN() 37 assert_d_eq(mallctlnametomib("no_such_name", mib, &miblen), ENOENT, 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() 57 assert_d_eq(mallctlnametomib("epoch", mib, &miblen), 0, in TEST_BEGIN() [all …]
|
D | stats.c | 8 assert_d_eq(mallctl("stats.allocated", (void *)&allocated, &sz, NULL, in TEST_BEGIN() 10 assert_d_eq(mallctl("stats.active", (void *)&active, &sz, NULL, 0), in TEST_BEGIN() 12 assert_d_eq(mallctl("stats.resident", (void *)&resident, &sz, NULL, 0), in TEST_BEGIN() 14 assert_d_eq(mallctl("stats.mapped", (void *)&mapped, &sz, NULL, 0), in TEST_BEGIN() 39 assert_d_eq(mallctl("epoch", NULL, NULL, (void *)&epoch, sizeof(epoch)), in TEST_BEGIN() 43 assert_d_eq(mallctl("stats.arenas.0.large.allocated", in TEST_BEGIN() 47 assert_d_eq(mallctl("stats.arenas.0.large.nmalloc", (void *)&nmalloc, in TEST_BEGIN() 49 assert_d_eq(mallctl("stats.arenas.0.large.ndalloc", (void *)&ndalloc, in TEST_BEGIN() 51 assert_d_eq(mallctl("stats.arenas.0.large.nrequests", in TEST_BEGIN() 85 assert_d_eq(mallctl("thread.tcache.flush", NULL, NULL, NULL, 0), in TEST_BEGIN() [all …]
|
D | nstime.c | 40 assert_d_eq(nstime_compare(&nsta, &nstb), 0, "Times should be equal"); in TEST_BEGIN() 41 assert_d_eq(nstime_compare(&nstb, &nsta), 0, "Times should be equal"); in TEST_BEGIN() 44 assert_d_eq(nstime_compare(&nsta, &nstb), 1, in TEST_BEGIN() 46 assert_d_eq(nstime_compare(&nstb, &nsta), -1, in TEST_BEGIN() 50 assert_d_eq(nstime_compare(&nsta, &nstb), -1, in TEST_BEGIN() 52 assert_d_eq(nstime_compare(&nstb, &nsta), 1, in TEST_BEGIN() 56 assert_d_eq(nstime_compare(&nsta, &nstb), 1, in TEST_BEGIN() 58 assert_d_eq(nstime_compare(&nstb, &nsta), -1, in TEST_BEGIN() 62 assert_d_eq(nstime_compare(&nsta, &nstb), -1, in TEST_BEGIN() 64 assert_d_eq(nstime_compare(&nstb, &nsta), 1, in TEST_BEGIN() [all …]
|
D | background_thread_enable.c | 19 assert_d_eq(mallctl("arenas.create", &id, &sz_u, NULL, 0), 0, in TEST_BEGIN() 25 assert_d_eq(mallctl("background_thread", NULL, NULL, &enable, sz_b), 0, in TEST_BEGIN() 28 assert_d_eq(mallctl("background_thread", NULL, NULL, &enable, sz_b), 0, in TEST_BEGIN() 39 assert_d_eq(mallctl("opt.max_background_threads", in TEST_BEGIN() 42 assert_d_eq(mallctl("max_background_threads", &maxt, &sz_m, NULL, 0), 0, in TEST_BEGIN() 48 assert_d_eq(mallctl("max_background_threads", NULL, NULL, &maxt, sz_m), in TEST_BEGIN() 55 assert_d_eq(mallctl("arenas.create", &id, &sz_u, NULL, 0), 0, in TEST_BEGIN() 61 assert_d_eq(mallctl("background_thread", NULL, NULL, &enable, sz_b), 0, in TEST_BEGIN() 66 assert_d_eq(mallctl("max_background_threads", NULL, NULL, &maxt, sz_m), in TEST_BEGIN() 71 assert_d_eq(mallctl("max_background_threads", NULL, NULL, &maxt, sz_m), in TEST_BEGIN()
|
D | decay.c | 20 assert_d_eq(ret, 0, "Unexpected mallctl error"); in check_background_thread_enabled() 42 assert_d_eq(mallctl("arenas.create", (void *)&arena_ind, &sz, NULL, 0), in do_arena_create() 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() 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() 78 assert_d_eq(mallctl("epoch", NULL, NULL, (void *)&epoch, sizeof(epoch)), in do_epoch() 86 assert_d_eq(mallctlnametomib("arena.0.purge", mib, &miblen), 0, in do_purge() [all …]
|
D | pack.c | 25 assert_d_eq(mallctl("arenas.nbins", (void *)&nbins, &sz, NULL, 0), 0, in binind_compute() 33 assert_d_eq(mallctlnametomib("arenas.bin.0.size", mib, in binind_compute() 38 assert_d_eq(mallctlbymib(mib, miblen, (void *)&size, &sz, NULL, in binind_compute() 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() 72 assert_d_eq(mallctl("arenas.create", (void *)&arena_ind, &sz, NULL, 0), in arenas_create_mallctl() 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 | prof_reset.c | 15 assert_d_eq(mallctl("prof.active", NULL, NULL, (void *)&active, in set_prof_active() 24 assert_d_eq(mallctl("prof.lg_sample", (void *)&lg_prof_sample, &sz, in get_lg_prof_sample() 32 assert_d_eq(mallctl("prof.reset", NULL, NULL, in do_prof_reset() 47 assert_d_eq(mallctl("opt.lg_prof_sample", (void *)&lg_prof_sample_orig, in TEST_BEGIN() 59 assert_d_eq(mallctl("prof.reset", NULL, NULL, NULL, 0), 0, in TEST_BEGIN() 112 assert_d_eq(mallctl("prof.dump", NULL, NULL, NULL, 0), in TEST_BEGIN() 117 assert_d_eq(mallctl("prof.reset", NULL, NULL, NULL, 0), 0, in TEST_BEGIN() 119 assert_d_eq(mallctl("prof.dump", NULL, NULL, NULL, 0), in TEST_BEGIN() 148 assert_d_eq(mallctl("prof.reset", NULL, NULL, NULL, 0), in thd_start() 154 assert_d_eq(mallctl("prof.dump", NULL, NULL, NULL, 0), in thd_start()
|
D | extent_quantize.c | 15 assert_d_eq(mallctl("arenas.nbins", (void *)&nbins, &sz, NULL, 0), 0, in TEST_BEGIN() 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() 50 assert_d_eq(mallctl("config.cache_oblivious", (void *)&cache_oblivious, in TEST_BEGIN() 54 assert_d_eq(mallctl("arenas.nlextents", (void *)&nlextents, &sz, NULL, in TEST_BEGIN() 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 | prof_thread_name.c | 10 assert_d_eq(mallctl("thread.prof.name", (void *)&thread_name_old, &sz, in mallctl_thread_name_get_impl() 23 assert_d_eq(mallctl("thread.prof.name", NULL, NULL, in mallctl_thread_name_set_impl() 42 assert_d_eq(mallctl("thread.prof.name", NULL, NULL, in TEST_BEGIN() 49 assert_d_eq(mallctl("thread.prof.name", NULL, NULL, in TEST_BEGIN() 60 assert_d_eq(mallctl("thread.prof.name", in TEST_BEGIN() 85 assert_d_eq(mallctl("prof.reset", NULL, NULL, NULL, 0), 0, in thd_start()
|
D | log.c | 28 assert_d_eq(count, 0, "Disabled logging not ignored!"); in expect_no_logging() 59 assert_d_eq(count, 10, "Mis-logged!"); in TEST_BEGIN() 68 assert_d_eq(count, 10, "Mis-logged!"); in TEST_BEGIN() 81 assert_d_eq(count, 20, "Mis-logged!"); in TEST_BEGIN() 131 assert_d_eq(count, 40, "Mis-logged!"); in TEST_BEGIN() 153 assert_d_eq(count, 20, "Mis-logged!"); in TEST_BEGIN() 169 assert_d_eq(count, 0, "Logging shouldn't happen if not initialized."); in TEST_BEGIN()
|
D | arena_reset.c | 16 assert_d_eq(mallctl(cmd, (void *)&ret, &z, NULL, 0), 0, in get_nsizes_impl() 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() 91 assert_d_eq(mallctl("arenas.create", (void *)&arena_ind, &sz, in do_arena_create() 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() 203 assert_d_eq(mallctl("epoch", NULL, NULL, (void *)&epoch, in arena_i_initialized() 208 assert_d_eq(mallctlnametomib("arena.0.initialized", mib, &miblen), 0, in arena_i_initialized() 212 assert_d_eq(mallctlbymib(mib, miblen, (void *)&initialized, &sz, NULL, in arena_i_initialized()
|
D | retained.c | 17 assert_d_eq(mallctl("arenas.create", (void *)&arena_ind, &sz, in do_arena_create() 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() 39 assert_d_eq(mallctl("epoch", NULL, NULL, (void *)&epoch, in do_refresh() 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()
|
/external/jemalloc/test/unit/ |
D | stats.c | 10 assert_d_eq(mallctl("stats.cactive", (void *)&cactive, &sz, NULL, 0), in TEST_BEGIN() 14 assert_d_eq(mallctl("stats.allocated", (void *)&allocated, &sz, NULL, in TEST_BEGIN() 16 assert_d_eq(mallctl("stats.active", (void *)&active, &sz, NULL, 0), in TEST_BEGIN() 18 assert_d_eq(mallctl("stats.resident", (void *)&resident, &sz, NULL, 0), in TEST_BEGIN() 20 assert_d_eq(mallctl("stats.mapped", (void *)&mapped, &sz, NULL, 0), in TEST_BEGIN() 48 assert_d_eq(mallctl("epoch", NULL, NULL, (void *)&epoch, sizeof(epoch)), in TEST_BEGIN() 52 assert_d_eq(mallctl("stats.arenas.0.huge.allocated", (void *)&allocated, in TEST_BEGIN() 55 assert_d_eq(mallctl("stats.arenas.0.huge.nmalloc", (void *)&nmalloc, in TEST_BEGIN() 57 assert_d_eq(mallctl("stats.arenas.0.huge.ndalloc", (void *)&ndalloc, in TEST_BEGIN() 59 assert_d_eq(mallctl("stats.arenas.0.huge.nrequests", (void *)&nrequests, in TEST_BEGIN() [all …]
|
D | mallctl.c | 8 assert_d_eq(mallctl("no_such_name", NULL, NULL, NULL, 0), ENOENT, in TEST_BEGIN() 11 assert_d_eq(mallctl("version", NULL, NULL, "0.0.0", strlen("0.0.0")), in TEST_BEGIN() 15 assert_d_eq(mallctl("epoch", NULL, NULL, (void *)&epoch, in TEST_BEGIN() 18 assert_d_eq(mallctl("epoch", NULL, NULL, (void *)&epoch, in TEST_BEGIN() 23 assert_d_eq(mallctl("epoch", (void *)&epoch, &sz, NULL, 0), EINVAL, in TEST_BEGIN() 26 assert_d_eq(mallctl("epoch", (void *)&epoch, &sz, NULL, 0), EINVAL, in TEST_BEGIN() 37 assert_d_eq(mallctlnametomib("no_such_name", mib, &miblen), ENOENT, 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() 58 assert_d_eq(mallctlnametomib("epoch", mib, &miblen), 0, in TEST_BEGIN() [all …]
|
D | nstime.c | 44 assert_d_eq(nstime_compare(&nsta, &nstb), 0, "Times should be equal"); in TEST_BEGIN() 45 assert_d_eq(nstime_compare(&nstb, &nsta), 0, "Times should be equal"); in TEST_BEGIN() 48 assert_d_eq(nstime_compare(&nsta, &nstb), 1, in TEST_BEGIN() 50 assert_d_eq(nstime_compare(&nstb, &nsta), -1, in TEST_BEGIN() 54 assert_d_eq(nstime_compare(&nsta, &nstb), -1, in TEST_BEGIN() 56 assert_d_eq(nstime_compare(&nstb, &nsta), 1, in TEST_BEGIN() 60 assert_d_eq(nstime_compare(&nsta, &nstb), 1, in TEST_BEGIN() 62 assert_d_eq(nstime_compare(&nstb, &nsta), -1, in TEST_BEGIN() 66 assert_d_eq(nstime_compare(&nsta, &nstb), -1, in TEST_BEGIN() 68 assert_d_eq(nstime_compare(&nstb, &nsta), 1, in TEST_BEGIN() [all …]
|
D | decay.c | 43 assert_d_eq(mallctl("arenas.hchunk.0.size", (void *)&huge0, &sz, NULL, in TEST_BEGIN() 45 assert_d_eq(mallctl("arenas.lrun.0.size", (void *)&large0, &sz, NULL, in TEST_BEGIN() 76 assert_d_eq(posix_memalign(&p, sizeof(size_t), huge0), 0, in TEST_BEGIN() 178 assert_d_eq(mallctl("tcache.create", (void *)&tcache_ind, &sz, in TEST_BEGIN() 195 assert_d_eq(mallctl("tcache.flush", NULL, NULL, in TEST_BEGIN() 231 assert_d_eq(mallctl("arenas.tcache_max", (void *)&tcache_max, in TEST_BEGIN() 236 assert_d_eq(mallctl("arenas.lrun.0.size", (void *)&large, &sz, in TEST_BEGIN() 240 assert_d_eq(mallctl("arena.0.purge", NULL, NULL, NULL, 0), 0, in TEST_BEGIN() 242 assert_d_eq(mallctl("epoch", NULL, NULL, (void *)&epoch, in TEST_BEGIN() 245 assert_d_eq(mallctl("stats.arenas.0.npurge", (void *)&npurge0, &sz, in TEST_BEGIN() [all …]
|
D | pack.c | 34 assert_d_eq(mallctl("arenas.nbins", (void *)&nbins, &sz, NULL, 0), 0, in binind_compute() 42 assert_d_eq(mallctlnametomib("arenas.bin.0.size", mib, in binind_compute() 47 assert_d_eq(mallctlbymib(mib, miblen, (void *)&size, &sz, NULL, in binind_compute() 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() 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() 114 assert_d_eq(mallctl("arenas.extend", (void *)&arena_ind, &sz, NULL, 0), in arenas_extend_mallctl() 126 assert_d_eq(mallctlnametomib("arena.0.reset", mib, &miblen), 0, in arena_reset_mallctl() 129 assert_d_eq(mallctlbymib(mib, miblen, NULL, NULL, NULL, 0), 0, in arena_reset_mallctl()
|
D | run_quantize.c | 16 assert_d_eq(mallctl("arenas.nbins", (void *)&nbins, &sz, NULL, 0), 0, in TEST_BEGIN() 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() 50 assert_d_eq(mallctl("config.cache_oblivious", (void *)&cache_oblivious, in TEST_BEGIN() 54 assert_d_eq(mallctl("arenas.nlruns", (void *)&nlruns, &sz, NULL, 0), 0, in TEST_BEGIN() 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() 105 assert_d_eq(mallctl("arenas.nbins", (void *)&nbins, &sz, NULL, 0), 0, in TEST_BEGIN() 109 assert_d_eq(mallctl("arenas.nlruns", (void *)&nlruns, &sz, NULL, 0), 0, in TEST_BEGIN()
|
D | prof_reset.c | 23 assert_d_eq(mallctl("prof.active", NULL, NULL, (void *)&active, in set_prof_active() 33 assert_d_eq(mallctl("prof.lg_sample", (void *)&lg_prof_sample, &sz, in get_lg_prof_sample() 42 assert_d_eq(mallctl("prof.reset", NULL, NULL, in do_prof_reset() 58 assert_d_eq(mallctl("opt.lg_prof_sample", (void *)&lg_prof_sample_orig, in TEST_BEGIN() 70 assert_d_eq(mallctl("prof.reset", NULL, NULL, NULL, 0), 0, in TEST_BEGIN() 126 assert_d_eq(mallctl("prof.dump", NULL, NULL, NULL, 0), in TEST_BEGIN() 131 assert_d_eq(mallctl("prof.reset", NULL, NULL, NULL, 0), 0, in TEST_BEGIN() 133 assert_d_eq(mallctl("prof.dump", NULL, NULL, NULL, 0), in TEST_BEGIN() 163 assert_d_eq(mallctl("prof.reset", NULL, NULL, NULL, 0), in thd_start() 169 assert_d_eq(mallctl("prof.dump", NULL, NULL, NULL, 0), in thd_start()
|
D | prof_thread_name.c | 15 assert_d_eq(mallctl("thread.prof.name", (void *)&thread_name_old, &sz, in mallctl_thread_name_get_impl() 30 assert_d_eq(mallctl("thread.prof.name", NULL, NULL, in mallctl_thread_name_set_impl() 50 assert_d_eq(mallctl("thread.prof.name", NULL, NULL, in TEST_BEGIN() 57 assert_d_eq(mallctl("thread.prof.name", NULL, NULL, in TEST_BEGIN() 68 assert_d_eq(mallctl("thread.prof.name", in TEST_BEGIN() 94 assert_d_eq(mallctl("prof.reset", NULL, NULL, NULL, 0), 0, in thd_start()
|
D | arena_reset.c | 14 assert_d_eq(mallctl(cmd, (void *)&ret, &z, NULL, 0), 0, in get_nsizes_impl() 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() 95 assert_d_eq(mallctl("arenas.extend", (void *)&arena_ind, &sz, NULL, 0), 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()
|
/external/jemalloc_new/test/integration/ |
D | thread_tcache_enabled.c | 7 assert_d_eq(mallctl("thread.tcache.enabled", (void *)&e0, &sz, NULL, in thd_start() 12 assert_d_eq(mallctl("thread.tcache.enabled", (void *)&e0, &sz, in thd_start() 18 assert_d_eq(mallctl("thread.tcache.enabled", (void *)&e0, &sz, in thd_start() 23 assert_d_eq(mallctl("thread.tcache.enabled", (void *)&e0, &sz, in thd_start() 28 assert_d_eq(mallctl("thread.tcache.enabled", (void *)&e0, &sz, in thd_start() 33 assert_d_eq(mallctl("thread.tcache.enabled", (void *)&e0, &sz, in thd_start() 39 assert_d_eq(mallctl("thread.tcache.enabled", (void *)&e0, &sz, in thd_start() 45 assert_d_eq(mallctl("thread.tcache.enabled", (void *)&e0, &sz, in thd_start() 51 assert_d_eq(mallctl("thread.tcache.enabled", (void *)&e0, &sz, in thd_start() 57 assert_d_eq(mallctl("thread.tcache.enabled", (void *)&e0, &sz, in thd_start()
|
D | extent.c | 13 assert_d_eq(ret, 0, "Unexpected mallctl error"); in check_background_thread_enabled() 30 assert_d_eq(mallctl("arenas.lextent.0.size", (void *)&large0, &sz, NULL, in test_extent_body() 32 assert_d_eq(mallctl("arenas.lextent.1.size", (void *)&large1, &sz, NULL, in test_extent_body() 34 assert_d_eq(mallctl("arenas.lextent.2.size", (void *)&large2, &sz, NULL, in test_extent_body() 39 assert_d_eq(mallctlnametomib("arena.0.purge", purge_mib, &purge_miblen), in test_extent_body() 55 assert_d_eq(mallctlbymib(purge_mib, purge_miblen, NULL, NULL, NULL, 0), in test_extent_body() 78 assert_d_eq(mallctlbymib(purge_mib, purge_miblen, NULL, NULL, NULL, 0), in test_extent_body() 113 assert_d_eq(mallctl("opt.narenas", (void *)&narenas, &sz, NULL, 0), in test_manual_hook_auto_arena() 121 assert_d_eq(mallctlnametomib("arena.0.extent_hooks", hooks_mib, in test_manual_hook_auto_arena() 127 assert_d_eq(mallctlbymib(hooks_mib, hooks_miblen, (void *)&old_hooks, in test_manual_hook_auto_arena() [all …]
|
/external/jemalloc/test/integration/ |
D | thread_tcache_enabled.c | 31 assert_d_eq(mallctl("thread.tcache.enabled", (void *)&e0, &sz, in thd_start() 37 assert_d_eq(mallctl("thread.tcache.enabled", (void *)&e0, &sz, in thd_start() 42 assert_d_eq(mallctl("thread.tcache.enabled", (void *)&e0, &sz, in thd_start() 47 assert_d_eq(mallctl("thread.tcache.enabled", (void *)&e0, &sz, in thd_start() 52 assert_d_eq(mallctl("thread.tcache.enabled", (void *)&e0, &sz, in thd_start() 58 assert_d_eq(mallctl("thread.tcache.enabled", (void *)&e0, &sz, in thd_start() 64 assert_d_eq(mallctl("thread.tcache.enabled", (void *)&e0, &sz, in thd_start() 70 assert_d_eq(mallctl("thread.tcache.enabled", (void *)&e0, &sz, in thd_start() 76 assert_d_eq(mallctl("thread.tcache.enabled", (void *)&e0, &sz, in thd_start()
|
D | chunk.c | 140 assert_d_eq(mallctl("arenas.extend", (void *)&arena_ind, &sz, NULL, 0), in TEST_BEGIN() 146 assert_d_eq(mallctlnametomib("arena.0.chunk_hooks", hooks_mib, in TEST_BEGIN() 151 assert_d_eq(mallctlbymib(hooks_mib, hooks_miblen, (void *)&old_hooks, in TEST_BEGIN() 168 assert_d_eq(mallctl("arenas.lrun.0.size", (void *)&large0, &sz, NULL, in TEST_BEGIN() 170 assert_d_eq(mallctl("arenas.lrun.1.size", (void *)&large1, &sz, NULL, in TEST_BEGIN() 174 assert_d_eq(mallctl("arenas.hchunk.0.size", (void *)&huge0, &sz, NULL, in TEST_BEGIN() 176 assert_d_eq(mallctl("arenas.hchunk.1.size", (void *)&huge1, &sz, NULL, in TEST_BEGIN() 178 assert_d_eq(mallctl("arenas.hchunk.2.size", (void *)&huge2, &sz, NULL, in TEST_BEGIN() 183 assert_d_eq(mallctlnametomib("arena.0.purge", purge_mib, &purge_miblen), in TEST_BEGIN() 195 assert_d_eq(mallctlbymib(purge_mib, purge_miblen, NULL, NULL, NULL, 0), in TEST_BEGIN() [all …]
|