Home
last modified time | relevance | path

Searched refs:assert_ptr_eq (Results 1 – 16 of 16) sorted by relevance

/external/jemalloc_new/test/include/test/
Dextent_hooks.h89 assert_ptr_eq(extent_hooks, &hooks, in extent_alloc_hook()
91 assert_ptr_eq(extent_hooks->alloc, extent_alloc_hook, in extent_alloc_hook()
111 assert_ptr_eq(extent_hooks, &hooks, in extent_dalloc_hook()
113 assert_ptr_eq(extent_hooks->dalloc, extent_dalloc_hook, in extent_dalloc_hook()
130 assert_ptr_eq(extent_hooks, &hooks, in extent_destroy_hook()
132 assert_ptr_eq(extent_hooks->destroy, extent_destroy_hook, in extent_destroy_hook()
150 assert_ptr_eq(extent_hooks, &hooks, in extent_commit_hook()
152 assert_ptr_eq(extent_hooks->commit, extent_commit_hook, in extent_commit_hook()
172 assert_ptr_eq(extent_hooks, &hooks, in extent_decommit_hook()
174 assert_ptr_eq(extent_hooks->decommit, extent_decommit_hook, in extent_decommit_hook()
[all …]
Dtest.h20 #define assert_ptr_eq(a, b, ...) assert_cmp(void *, a, b, ==, \ macro
/external/jemalloc_new/test/unit/
Dckh.c65 assert_ptr_eq((void *)ks, (void *)k.s, "Key mismatch, i=%zu", in TEST_BEGIN()
67 assert_ptr_eq((void *)vs, (void *)v.s, "Value mismatch, i=%zu", in TEST_BEGIN()
91 assert_ptr_eq((void *)ks, (void *)k.s, "Key mismatch, i=%zu", in TEST_BEGIN()
93 assert_ptr_eq((void *)vs, (void *)v.s, "Value mismatch, i=%zu", in TEST_BEGIN()
132 assert_ptr_eq(p[j], q, "Key pointer mismatch"); in TEST_BEGIN()
133 assert_ptr_eq(p[j], r, "Value pointer mismatch"); in TEST_BEGIN()
145 assert_ptr_eq(p[j], q, "Key pointer mismatch"); in TEST_BEGIN()
146 assert_ptr_eq(p[j], r, "Value pointer mismatch"); in TEST_BEGIN()
162 assert_ptr_eq(q, r, "Key and val not equal"); in TEST_BEGIN()
188 assert_ptr_eq(p[i], q, "Key pointer mismatch"); in TEST_BEGIN()
[all …]
Dbase.c147 assert_ptr_eq(p, in TEST_BEGIN()
153 assert_ptr_eq((void *)((uintptr_t)p + align_ceil), q, in TEST_BEGIN()
159 assert_ptr_eq((void *)((uintptr_t)q + align_ceil), r, in TEST_BEGIN()
185 assert_ptr_eq(r, r_exp, "Expected allocation from first block"); in TEST_BEGIN()
203 assert_ptr_eq(p, in TEST_BEGIN()
Drtree.c106 assert_ptr_eq(rtree_extent_read(tsdn, rtree, &rtree_ctx, PAGE, true), in TEST_BEGIN()
113 assert_ptr_eq(rtree_extent_read(tsdn, rtree, &rtree_ctx, in TEST_BEGIN()
141 assert_ptr_eq(rtree_extent_read(tsdn, rtree, &rtree_ctx, in TEST_BEGIN()
181 assert_ptr_eq(rtree_extent_read(tsdn, rtree, &rtree_ctx, in TEST_BEGIN()
186 assert_ptr_eq(rtree_extent_read(tsdn, rtree, &rtree_ctx, in TEST_BEGIN()
Dmq.c23 assert_ptr_eq(mq_tryget(&mq), &msg, "mq_tryget() should return msg"); in mq_gen()
26 assert_ptr_eq(mq_get(&mq), &msg, "mq_get() should return msg"); in mq_gen()
Dph.c77 assert_ptr_eq(phn_next_get(node_t, link, phn_prev_get(node_t, in heap_print()
101 assert_ptr_eq((void *)phn_prev_get(node_t, link, leftmost_child), in node_validate()
107 assert_ptr_eq(phn_next_get(node_t, link, phn_prev_get(node_t, in node_validate()
128 assert_ptr_eq(phn_next_get(node_t, link, phn_prev_get(node_t, in heap_validate()
Drb.c129 assert_ptr_eq(search_node, node, in tree_iterate_cb()
134 assert_ptr_eq(search_node, node, in tree_iterate_cb()
139 assert_ptr_eq(search_node, node, in tree_iterate_cb()
Dqr.c52 assert_ptr_eq(t, &entries[i], in test_independent_entries()
58 assert_ptr_eq(t, &entries[i], in test_independent_entries()
Darena_reset.c274 assert_ptr_eq(extent_hooks, &hooks, in extent_dalloc_unmap()
276 assert_ptr_eq(extent_hooks->dalloc, extent_dalloc_unmap, in extent_dalloc_unmap()
Dpack.c151 assert_ptr_eq(p, ptrs[(i * nregs_per_run) + j], in TEST_BEGIN()
Dmallctl.c232 assert_ptr_eq(p0, p1, "Expected tcache to allocate cached region"); in TEST_BEGIN()
295 assert_ptr_eq(ps[i], p0, in TEST_BEGIN()
305 assert_ptr_eq(qs[i], q0, in TEST_BEGIN()
Datomic.c9 #define assert_p_eq assert_ptr_eq
/external/jemalloc_new/test/integration/
Dextent.c189 assert_ptr_eq(old_hooks, default_hooks, "Unexpected extent_hooks error"); in test_manual_hook_body()
190 assert_ptr_eq(old_hooks->alloc, default_hooks->alloc, in test_manual_hook_body()
192 assert_ptr_eq(old_hooks->dalloc, default_hooks->dalloc, in test_manual_hook_body()
194 assert_ptr_eq(old_hooks->commit, default_hooks->commit, in test_manual_hook_body()
196 assert_ptr_eq(old_hooks->decommit, default_hooks->decommit, in test_manual_hook_body()
198 assert_ptr_eq(old_hooks->purge_lazy, default_hooks->purge_lazy, in test_manual_hook_body()
200 assert_ptr_eq(old_hooks->purge_forced, default_hooks->purge_forced, in test_manual_hook_body()
202 assert_ptr_eq(old_hooks->split, default_hooks->split, in test_manual_hook_body()
204 assert_ptr_eq(old_hooks->merge, default_hooks->merge, in test_manual_hook_body()
Dallocated.c70 assert_ptr_eq(ap0, ap1, in thd_start()
87 assert_ptr_eq(dp0, dp1, in thd_start()
/external/rust/crates/tokio/src/util/
Dlinked_list.rs444 macro_rules! assert_ptr_eq { macro
537 assert_ptr_eq!(b, list.head); in remove_by_address()
538 assert_ptr_eq!(c, b.pointers.get_next()); in remove_by_address()
539 assert_ptr_eq!(b, c.pointers.get_prev()); in remove_by_address()
554 assert_ptr_eq!(c, a.pointers.get_next()); in remove_by_address()
555 assert_ptr_eq!(a, c.pointers.get_prev()); in remove_by_address()
572 assert_ptr_eq!(b, list.tail); in remove_by_address()
591 assert_ptr_eq!(b, list.head); in remove_by_address()
592 assert_ptr_eq!(b, list.tail); in remove_by_address()
611 assert_ptr_eq!(a, list.head); in remove_by_address()
[all …]