mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-24 08:03:32 +03:00
Extent -> Ehooks: Move over default hooks.
This commit is contained in:
parent
2fe5108263
commit
c8dae890c8
8 changed files with 43 additions and 38 deletions
20
src/ehooks.c
20
src/ehooks.c
|
|
@ -208,3 +208,23 @@ ehooks_default_merge(extent_hooks_t *extent_hooks, void *addr_a, size_t size_a,
|
|||
}
|
||||
return ehooks_default_merge_impl(addr_a, addr_b);
|
||||
}
|
||||
|
||||
const extent_hooks_t ehooks_default_extent_hooks = {
|
||||
ehooks_default_alloc,
|
||||
ehooks_default_dalloc,
|
||||
ehooks_default_destroy,
|
||||
ehooks_default_commit,
|
||||
ehooks_default_decommit,
|
||||
#ifdef PAGES_CAN_PURGE_LAZY
|
||||
ehooks_default_purge_lazy,
|
||||
#else
|
||||
NULL,
|
||||
#endif
|
||||
#ifdef PAGES_CAN_PURGE_FORCED
|
||||
ehooks_default_purge_forced,
|
||||
#else
|
||||
NULL,
|
||||
#endif
|
||||
ehooks_default_split,
|
||||
ehooks_default_merge
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue