Extent -> Ehooks: Move commit and decommit hooks.

This commit is contained in:
David Goldblatt 2019-12-03 12:25:00 -08:00 committed by David Goldblatt
parent 5459ec9dae
commit d78fe241ac
4 changed files with 56 additions and 47 deletions

View file

@ -84,7 +84,7 @@ base_unmap(tsdn_t *tsdn, ehooks_t *ehooks, unsigned ind, void *addr,
if (!ehooks_dalloc(tsdn, ehooks, addr, size, true, ind)) {
goto label_post_reentrancy;
}
if (!ehooks_decommit(ehooks, addr, size, 0, size, ind)) {
if (!ehooks_decommit(tsdn, ehooks, addr, size, 0, size, ind)) {
goto label_post_reentrancy;
}
if (!ehooks_purge_forced(ehooks, addr, size, 0, size, ind)) {