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