/external/jemalloc/test/unit/ |
D | size_classes.c | 49 assert_zu_eq(size_class, index2size(size2index(size_class)), in TEST_BEGIN() 58 assert_zu_eq(size_class, (index > 0) ? in TEST_BEGIN() 61 assert_zu_eq(size_class, s2u(size_class-1), in TEST_BEGIN() 63 assert_zu_eq(size_class, s2u(size_class), in TEST_BEGIN() 65 assert_zu_eq(s2u(size_class+1), index2size(index+1), in TEST_BEGIN() 71 assert_zu_eq(max_size_class, index2size(size2index(max_size_class)), in TEST_BEGIN() 74 assert_zu_eq(size_class, s2u(index2size(index-1)+1), in TEST_BEGIN() 76 assert_zu_eq(size_class, s2u(size_class-1), in TEST_BEGIN() 78 assert_zu_eq(size_class, s2u(size_class), in TEST_BEGIN() 106 assert_zu_eq(size_class, pind2sz(psz2ind(size_class)), in TEST_BEGIN() [all …]
|
D | prof_reset.c | 45 assert_zu_eq(lg_prof_sample, get_lg_prof_sample(), in do_prof_reset() 61 assert_zu_eq(lg_prof_sample_orig, 0, in TEST_BEGIN() 64 assert_zu_eq(lg_prof_sample_orig, lg_prof_sample, in TEST_BEGIN() 73 assert_zu_eq(lg_prof_sample_orig, lg_prof_sample, in TEST_BEGIN() 82 assert_zu_eq(lg_prof_sample, lg_prof_sample_next, in TEST_BEGIN() 89 assert_zu_eq(lg_prof_sample_orig, lg_prof_sample, in TEST_BEGIN() 117 assert_zu_eq(prof_bt_count(), 0, "Expected 0 backtraces"); in TEST_BEGIN() 120 assert_zu_eq(prof_bt_count(), 1, "Expected 1 backtrace"); in TEST_BEGIN() 136 assert_zu_eq(prof_bt_count(), 1, "Expected 1 backtrace"); in TEST_BEGIN() 141 assert_zu_eq(prof_bt_count(), 0, "Expected 0 backtraces"); in TEST_BEGIN() [all …]
|
D | run_quantize.c | 26 assert_zu_eq(run_size, run_quantize_floor(run_size), in TEST_BEGIN() 29 assert_zu_eq(run_size, run_quantize_ceil(run_size), in TEST_BEGIN() 70 assert_zu_eq(run_size, floor, in TEST_BEGIN() 73 assert_zu_eq(run_size, ceil, in TEST_BEGIN() 78 assert_zu_eq(run_size_prev, run_quantize_floor(run_size in TEST_BEGIN() 81 assert_zu_eq(ceil_prev, run_size, in TEST_BEGIN()
|
D | mallctl.c | 87 assert_zu_eq(sz, sizeof(old_epoch), "Unexpected output size"); in TEST_BEGIN() 92 assert_zu_eq(sz, sizeof(old_epoch), "Unexpected output size"); in TEST_BEGIN() 97 assert_zu_eq(sz, sizeof(old_epoch), "Unexpected output size"); in TEST_BEGIN() 103 assert_zu_eq(sz, sizeof(old_epoch), "Unexpected output size"); in TEST_BEGIN() 116 assert_zu_eq(miblen, 3, "Unexpected mib output length"); in TEST_BEGIN() 117 assert_zu_eq(mib[3], 42, in TEST_BEGIN() 131 assert_zu_eq(sz, sizeof(oldval), "Unexpected output size"); \ in TEST_BEGIN() 166 assert_zu_eq(sz, sizeof(oldval), "Unexpected output size"); \ in TEST_BEGIN() 609 assert_zu_eq(name, expected, "Incorrect "#name" size"); \ in TEST_BEGIN() 630 assert_zu_eq(name, expected, "Incorrect "#name" size"); \ in TEST_BEGIN() [all …]
|
D | ckh.c | 37 assert_zu_eq(ckh_count(&ckh), 0, in TEST_BEGIN() 44 assert_zu_eq(ckh_count(&ckh), i+1, in TEST_BEGIN() 97 assert_zu_eq(ckh_count(&ckh), in TEST_BEGIN() 139 assert_zu_eq(ckh_count(&ckh), NITEMS, in TEST_BEGIN() 198 assert_zu_eq(ckh_count(&ckh), 0, in TEST_BEGIN()
|
D | prng.c | 87 assert_zu_eq(ra, rb, in test_prng_lg_range_zu() 92 assert_zu_eq(ra, rb, in test_prng_lg_range_zu() 107 assert_zu_eq((rb & (SIZE_T_MAX << lg_range)), in test_prng_lg_range_zu() 109 assert_zu_eq(rb, (ra >> ((ZU(1) << (3 + LG_SIZEOF_PTR)) - in test_prng_lg_range_zu()
|
D | prof_active.c | 86 assert_zu_eq(prof_bt_count(), 0, "%s():%d: Expected 0 backtraces", func, in prof_sampling_probe_impl() 90 assert_zu_eq(prof_bt_count(), expected_backtraces, in prof_sampling_probe_impl()
|
D | junk.c | 175 assert_zu_eq(old_usize, large_maxclass, "Unexpected old_usize"); in arena_ralloc_junk_large_intercept() 176 assert_zu_eq(usize, shrink_size(large_maxclass), "Unexpected usize"); in arena_ralloc_junk_large_intercept()
|
/external/jemalloc_new/test/unit/ |
D | size_classes.c | 47 assert_zu_eq(size_class, in TEST_BEGIN() 57 assert_zu_eq(size_class, (index > 0) ? in TEST_BEGIN() 60 assert_zu_eq(size_class, sz_s2u(size_class-1), in TEST_BEGIN() 62 assert_zu_eq(size_class, sz_s2u(size_class), in TEST_BEGIN() 64 assert_zu_eq(sz_s2u(size_class+1), sz_index2size(index+1), in TEST_BEGIN() 70 assert_zu_eq(max_size_class, sz_index2size( in TEST_BEGIN() 74 assert_zu_eq(size_class, sz_s2u(sz_index2size(index-1)+1), in TEST_BEGIN() 76 assert_zu_eq(size_class, sz_s2u(size_class-1), in TEST_BEGIN() 78 assert_zu_eq(size_class, sz_s2u(size_class), in TEST_BEGIN() 105 assert_zu_eq(size_class, sz_pind2sz(sz_psz2ind(size_class)), in TEST_BEGIN() [all …]
|
D | bitmap.c | 100 assert_zu_eq(bitmap_size(binfo), bitmap_size(&binfo_dyn), in test_bitmap_initializer_body() 103 assert_zu_eq(binfo->nbits, binfo_dyn.nbits, in test_bitmap_initializer_body() 114 assert_zu_eq(binfo->levels[i].group_offset, in test_bitmap_initializer_body() 121 assert_zu_eq(binfo->ngroups, binfo_dyn.ngroups, in test_bitmap_initializer_body() 283 assert_zu_eq(bitmap_ffu(bitmap, binfo, 0), i, in test_bitmap_xfu_body() 286 assert_zu_eq(bitmap_ffu(bitmap, binfo, (i > 0) ? i-1 : i), i, in test_bitmap_xfu_body() 289 assert_zu_eq(bitmap_ffu(bitmap, binfo, i), i, in test_bitmap_xfu_body() 292 assert_zu_eq(bitmap_sfu(bitmap, binfo), i, in test_bitmap_xfu_body() 304 assert_zu_eq(bitmap_ffu(bitmap, binfo, 0), i, in test_bitmap_xfu_body() 306 assert_zu_eq(bitmap_ffu(bitmap, binfo, (i > 0) ? i-1 : i), i, in test_bitmap_xfu_body() [all …]
|
D | prof_reset.c | 35 assert_zu_eq(lg_prof_sample, get_lg_prof_sample(), in do_prof_reset() 50 assert_zu_eq(lg_prof_sample_orig, 0, in TEST_BEGIN() 53 assert_zu_eq(lg_prof_sample_orig, lg_prof_sample, in TEST_BEGIN() 62 assert_zu_eq(lg_prof_sample_orig, lg_prof_sample, in TEST_BEGIN() 71 assert_zu_eq(lg_prof_sample, lg_prof_sample_next, in TEST_BEGIN() 78 assert_zu_eq(lg_prof_sample_orig, lg_prof_sample, in TEST_BEGIN() 103 assert_zu_eq(prof_bt_count(), 0, "Expected 0 backtraces"); in TEST_BEGIN() 106 assert_zu_eq(prof_bt_count(), 1, "Expected 1 backtrace"); in TEST_BEGIN() 122 assert_zu_eq(prof_bt_count(), 1, "Expected 1 backtrace"); in TEST_BEGIN() 127 assert_zu_eq(prof_bt_count(), 0, "Expected 0 backtraces"); in TEST_BEGIN() [all …]
|
D | background_thread_enable.c | 44 assert_zu_eq(20, maxt, "should be ncpus"); in TEST_BEGIN() 45 assert_zu_eq(opt_maxt, maxt, in TEST_BEGIN() 63 assert_zu_eq(n_background_threads, maxt, in TEST_BEGIN() 68 assert_zu_eq(n_background_threads, maxt, in TEST_BEGIN() 73 assert_zu_eq(n_background_threads, maxt, in TEST_BEGIN()
|
D | extent_quantize.c | 25 assert_zu_eq(extent_size, in TEST_BEGIN() 29 assert_zu_eq(extent_size, in TEST_BEGIN() 71 assert_zu_eq(extent_size, floor, in TEST_BEGIN() 75 assert_zu_eq(extent_size, ceil, in TEST_BEGIN() 81 assert_zu_eq(extent_size_prev, in TEST_BEGIN() 85 assert_zu_eq(ceil_prev, extent_size, in TEST_BEGIN()
|
D | mallctl.c | 85 assert_zu_eq(sz, sizeof(old_epoch), "Unexpected output size"); in TEST_BEGIN() 90 assert_zu_eq(sz, sizeof(old_epoch), "Unexpected output size"); in TEST_BEGIN() 95 assert_zu_eq(sz, sizeof(old_epoch), "Unexpected output size"); in TEST_BEGIN() 101 assert_zu_eq(sz, sizeof(old_epoch), "Unexpected output size"); in TEST_BEGIN() 113 assert_zu_eq(miblen, 3, "Unexpected mib output length"); in TEST_BEGIN() 114 assert_zu_eq(mib[3], 42, in TEST_BEGIN() 126 assert_zu_eq(sz, sizeof(oldval), "Unexpected output size"); \ in TEST_BEGIN() 156 assert_zu_eq(sz, sizeof(oldval), "Unexpected output size"); \ in TEST_BEGIN() 579 assert_zu_eq(default_limit, sz_pind2sz(EXTENT_GROW_MAX_PIND), in TEST_BEGIN() 591 assert_zu_eq(old_limit, PAGE, in TEST_BEGIN() [all …]
|
D | ckh.c | 35 assert_zu_eq(ckh_count(&ckh), 0, in TEST_BEGIN() 42 assert_zu_eq(ckh_count(&ckh), i+1, in TEST_BEGIN() 95 assert_zu_eq(ckh_count(&ckh), in TEST_BEGIN() 136 assert_zu_eq(ckh_count(&ckh), NITEMS, in TEST_BEGIN() 197 assert_zu_eq(ckh_count(&ckh), 0, in TEST_BEGIN()
|
D | background_thread.c | 19 assert_zu_eq(n_background_threads, 0, in test_switch_background_thread_ctl() 38 assert_zu_eq(n_background_threads, 0, in test_repeat_background_thread_ctl() 58 assert_zu_eq(n_background_threads, 0, in TEST_BEGIN()
|
D | decay.c | 545 assert_zu_eq(get_arena_pdirty(arena_ind), 0, "Unexpected dirty pages"); in TEST_BEGIN() 546 assert_zu_eq(get_arena_pmuzzy(arena_ind), 0, "Unexpected muzzy pages"); in TEST_BEGIN() 552 assert_zu_eq(get_arena_pdirty(arena_ind), 0, in TEST_BEGIN() 554 assert_zu_eq(get_arena_pmuzzy(arena_ind), 0, in TEST_BEGIN() 566 assert_zu_eq(get_arena_pdirty(arena_ind), 0, "Unexpected dirty pages"); in TEST_BEGIN() 567 assert_zu_eq(get_arena_pmuzzy(arena_ind), 0, "Unexpected muzzy pages"); in TEST_BEGIN() 576 assert_zu_eq(pdirty_prev, 0, "Unexpected dirty pages"); in TEST_BEGIN() 577 assert_zu_eq(pmuzzy_prev, 0, "Unexpected muzzy pages"); in TEST_BEGIN() 584 assert_zu_eq(pmuzzy, 0, "Unexpected muzzy pages"); in TEST_BEGIN()
|
D | prng.c | 86 assert_zu_eq(ra, rb, in test_prng_lg_range_zu() 91 assert_zu_eq(ra, rb, in test_prng_lg_range_zu() 106 assert_zu_eq((rb & (SIZE_T_MAX << lg_range)), in test_prng_lg_range_zu() 108 assert_zu_eq(rb, (ra >> ((ZU(1) << (3 + LG_SIZEOF_PTR)) - in test_prng_lg_range_zu()
|
D | base.c | 178 assert_zu_eq(base->extent_sn_next, 1, "One extant block expected"); in TEST_BEGIN() 182 assert_zu_eq(base->extent_sn_next, 2, "Two extant blocks expected"); in TEST_BEGIN() 186 assert_zu_eq(base->extent_sn_next, 2, "Two extant blocks expected"); in TEST_BEGIN()
|
D | prof_active.c | 70 assert_zu_eq(prof_bt_count(), 0, "%s():%d: Expected 0 backtraces", func, in prof_sampling_probe_impl() 74 assert_zu_eq(prof_bt_count(), expected_backtraces, in prof_sampling_probe_impl()
|
/external/jemalloc/test/integration/ |
D | xallocx.c | 36 assert_zu_eq(tsz, sz, "Unexpected size change: %zu --> %zu", sz, tsz); in TEST_BEGIN() 52 assert_zu_eq(tsz, sz, "Unexpected size change: %zu --> %zu", sz, tsz); in TEST_BEGIN() 68 assert_zu_eq(tsz, sz, "Unexpected size change: %zu --> %zu", sz, tsz); in TEST_BEGIN() 161 assert_zu_eq(xallocx(p, 1, 0, 0), small0, in TEST_BEGIN() 223 assert_zu_eq(xallocx(p, small1, 0, 0), small0, in TEST_BEGIN() 226 assert_zu_eq(xallocx(p, small1, 0, 0), small0, in TEST_BEGIN() 229 assert_zu_eq(xallocx(p, small0, small1 - small0, 0), small0, in TEST_BEGIN() 233 assert_zu_eq(xallocx(p, small0, hugemax - small0 + 1, 0), small0, in TEST_BEGIN() 235 assert_zu_eq(xallocx(p, small0, SIZE_T_MAX - small0, 0), small0, in TEST_BEGIN() 259 assert_zu_eq(xallocx(p, large2, 0, flags), large2, in TEST_BEGIN() [all …]
|
D | mallocx.c | 143 assert_zu_eq(nsz, rsz, "nallocx()/sallocx() size mismatch"); in TEST_BEGIN() 158 assert_zu_eq(nsz, rsz, "nallocx()/sallocx() rsize mismatch"); in TEST_BEGIN() 199 assert_zu_eq(nsz, rsz, in TEST_BEGIN()
|
D | chunk.c | 238 assert_zu_eq(xallocx(p, huge1, 0, flags), huge1, in TEST_BEGIN() 251 assert_zu_eq(xallocx(p, large0, 0, flags), large0, in TEST_BEGIN() 256 assert_zu_eq(xallocx(p, large1, 0, flags), large1, in TEST_BEGIN()
|
/external/jemalloc_new/test/integration/ |
D | xallocx.c | 30 assert_zu_eq(tsz, sz, "Unexpected size change: %zu --> %zu", sz, tsz); in TEST_BEGIN() 45 assert_zu_eq(tsz, sz, "Unexpected size change: %zu --> %zu", sz, tsz); in TEST_BEGIN() 60 assert_zu_eq(tsz, sz, "Unexpected size change: %zu --> %zu", sz, tsz); in TEST_BEGIN() 128 assert_zu_eq(xallocx(p, 1, 0, 0), small0, in TEST_BEGIN() 188 assert_zu_eq(xallocx(p, small1, 0, 0), small0, in TEST_BEGIN() 191 assert_zu_eq(xallocx(p, small1, 0, 0), small0, in TEST_BEGIN() 194 assert_zu_eq(xallocx(p, small0, small1 - small0, 0), small0, in TEST_BEGIN() 198 assert_zu_eq(xallocx(p, small0, largemax - small0 + 1, 0), small0, in TEST_BEGIN() 200 assert_zu_eq(xallocx(p, small0, SIZE_T_MAX - small0, 0), small0, in TEST_BEGIN() 222 assert_zu_eq(xallocx(p, large3, 0, flags), large3, in TEST_BEGIN() [all …]
|
D | mallocx.c | 130 assert_zu_eq(nsz, rsz, "nallocx()/sallocx() size mismatch"); in TEST_BEGIN() 145 assert_zu_eq(nsz, rsz, "nallocx()/sallocx() rsize mismatch"); in TEST_BEGIN() 194 assert_zu_eq(nsz, rsz, in TEST_BEGIN()
|