Lines Matching refs:old_hooks
8 static chunk_hooks_t old_hooks; variable
36 return (old_hooks.alloc(new_addr, size, alignment, zero, commit, in chunk_alloc()
49 return (old_hooks.dalloc(chunk, size, committed, arena_ind)); in chunk_dalloc()
61 err = old_hooks.commit(chunk, size, offset, length, arena_ind); in chunk_commit()
77 err = old_hooks.decommit(chunk, size, offset, length, arena_ind); in chunk_decommit()
91 return (old_hooks.purge(chunk, size, offset, length, arena_ind)); in chunk_purge()
103 return (old_hooks.split(chunk, size, size_a, size_b, committed, in chunk_split()
116 return (old_hooks.merge(chunk_a, size_a, chunk_b, size_b, in chunk_merge()
151 assert_d_eq(mallctlbymib(hooks_mib, hooks_miblen, (void *)&old_hooks, in TEST_BEGIN()
154 orig_hooks = old_hooks; in TEST_BEGIN()
155 assert_ptr_ne(old_hooks.alloc, chunk_alloc, "Unexpected alloc error"); in TEST_BEGIN()
156 assert_ptr_ne(old_hooks.dalloc, chunk_dalloc, in TEST_BEGIN()
158 assert_ptr_ne(old_hooks.commit, chunk_commit, in TEST_BEGIN()
160 assert_ptr_ne(old_hooks.decommit, chunk_decommit, in TEST_BEGIN()
162 assert_ptr_ne(old_hooks.purge, chunk_purge, "Unexpected purge error"); in TEST_BEGIN()
163 assert_ptr_ne(old_hooks.split, chunk_split, "Unexpected split error"); in TEST_BEGIN()
164 assert_ptr_ne(old_hooks.merge, chunk_merge, "Unexpected merge error"); in TEST_BEGIN()
269 (void *)&old_hooks, new_size), 0, "Unexpected chunk_hooks error"); in TEST_BEGIN()
270 assert_d_eq(mallctlbymib(hooks_mib, hooks_miblen, (void *)&old_hooks, in TEST_BEGIN()
272 assert_ptr_eq(old_hooks.alloc, orig_hooks.alloc, in TEST_BEGIN()
274 assert_ptr_eq(old_hooks.dalloc, orig_hooks.dalloc, in TEST_BEGIN()
276 assert_ptr_eq(old_hooks.commit, orig_hooks.commit, in TEST_BEGIN()
278 assert_ptr_eq(old_hooks.decommit, orig_hooks.decommit, in TEST_BEGIN()
280 assert_ptr_eq(old_hooks.purge, orig_hooks.purge, in TEST_BEGIN()
282 assert_ptr_eq(old_hooks.split, orig_hooks.split, in TEST_BEGIN()
284 assert_ptr_eq(old_hooks.merge, orig_hooks.merge, in TEST_BEGIN()