Lines Matching refs:tsdn
14 rtree_node_alloc_intercept(tsdn_t *tsdn, rtree_t *rtree, size_t nelms) { in rtree_node_alloc_intercept() argument
18 return rtree_node_alloc_orig(tsdn, rtree, nelms); in rtree_node_alloc_intercept()
21 malloc_mutex_unlock(tsdn, &rtree->init_lock); in rtree_node_alloc_intercept()
24 malloc_mutex_lock(tsdn, &rtree->init_lock); in rtree_node_alloc_intercept()
30 rtree_node_dalloc_intercept(tsdn_t *tsdn, rtree_t *rtree, in rtree_node_dalloc_intercept() argument
33 rtree_node_dalloc_orig(tsdn, rtree, node); in rtree_node_dalloc_intercept()
41 rtree_leaf_alloc_intercept(tsdn_t *tsdn, rtree_t *rtree, size_t nelms) { in rtree_leaf_alloc_intercept() argument
45 return rtree_leaf_alloc_orig(tsdn, rtree, nelms); in rtree_leaf_alloc_intercept()
48 malloc_mutex_unlock(tsdn, &rtree->init_lock); in rtree_leaf_alloc_intercept()
51 malloc_mutex_lock(tsdn, &rtree->init_lock); in rtree_leaf_alloc_intercept()
57 rtree_leaf_dalloc_intercept(tsdn_t *tsdn, rtree_t *rtree, in rtree_leaf_dalloc_intercept() argument
60 rtree_leaf_dalloc_orig(tsdn, rtree, leaf); in rtree_leaf_dalloc_intercept()
68 tsdn_t *tsdn; in TEST_BEGIN() local
70 tsdn = tsdn_fetch(); in TEST_BEGIN()
76 assert_ptr_null(rtree_extent_read(tsdn, rtree, &rtree_ctx, PAGE, in TEST_BEGIN()
78 rtree_delete(tsdn, rtree); in TEST_BEGIN()
94 tsdn_t *tsdn = tsdn_fetch(); in TEST_BEGIN() local
101 assert_false(rtree_write(tsdn, rtree, &rtree_ctx, PAGE, &extent_a, in TEST_BEGIN()
104 rtree_szind_slab_update(tsdn, rtree, &rtree_ctx, PAGE, in TEST_BEGIN()
106 assert_ptr_eq(rtree_extent_read(tsdn, rtree, &rtree_ctx, PAGE, true), in TEST_BEGIN()
110 assert_false(rtree_write(tsdn, rtree, &rtree_ctx, ~((uintptr_t)0), in TEST_BEGIN()
113 assert_ptr_eq(rtree_extent_read(tsdn, rtree, &rtree_ctx, in TEST_BEGIN()
117 rtree_delete(tsdn, rtree); in TEST_BEGIN()
122 tsdn_t *tsdn = tsdn_fetch(); in TEST_BEGIN() local
137 assert_false(rtree_write(tsdn, rtree, &rtree_ctx, keys[i], in TEST_BEGIN()
141 assert_ptr_eq(rtree_extent_read(tsdn, rtree, &rtree_ctx, in TEST_BEGIN()
148 assert_ptr_null(rtree_extent_read(tsdn, rtree, &rtree_ctx, in TEST_BEGIN()
151 rtree_clear(tsdn, rtree, &rtree_ctx, keys[i]); in TEST_BEGIN()
154 rtree_delete(tsdn, rtree); in TEST_BEGIN()
162 tsdn_t *tsdn = tsdn_fetch(); in TEST_BEGIN() local
176 rtree_leaf_elm_t *elm = rtree_leaf_elm_lookup(tsdn, rtree, in TEST_BEGIN()
180 rtree_leaf_elm_write(tsdn, rtree, elm, &extent, NSIZES, false); 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()
193 rtree_clear(tsdn, rtree, &rtree_ctx, keys[i]); in TEST_BEGIN()
194 assert_ptr_null(rtree_extent_read(tsdn, rtree, &rtree_ctx, in TEST_BEGIN()
199 assert_ptr_null(rtree_extent_read(tsdn, rtree, &rtree_ctx, in TEST_BEGIN()
204 rtree_delete(tsdn, rtree); in TEST_BEGIN()