mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-26 10:37:19 +03:00
Extent -> Ehooks: Move destroy hook.
This commit is contained in:
parent
bac8e2e5a6
commit
5459ec9dae
3 changed files with 31 additions and 32 deletions
14
src/ehooks.c
14
src/ehooks.c
|
|
@ -89,3 +89,17 @@ ehooks_default_dalloc(extent_hooks_t *extent_hooks, void *addr, size_t size,
|
|||
bool committed, unsigned arena_ind) {
|
||||
return ehooks_default_dalloc_impl(addr, size);
|
||||
}
|
||||
|
||||
void
|
||||
ehooks_default_destroy_impl(void *addr, size_t size) {
|
||||
if (!have_dss || !extent_in_dss(addr)) {
|
||||
pages_unmap(addr, size);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
ehooks_default_destroy(extent_hooks_t *extent_hooks, void *addr, size_t size,
|
||||
bool committed, unsigned arena_ind) {
|
||||
ehooks_default_destroy_impl(addr, size);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue