Extent -> Ehooks: Move purge_lazy hook.

This commit is contained in:
David Goldblatt 2019-12-03 12:59:46 -08:00 committed by David Goldblatt
parent f83fdf5336
commit 368baa42ef
4 changed files with 41 additions and 37 deletions

View file

@ -90,7 +90,8 @@ base_unmap(tsdn_t *tsdn, ehooks_t *ehooks, unsigned ind, void *addr,
if (!ehooks_purge_forced(ehooks, addr, size, 0, size, ind)) {
goto label_post_reentrancy;
}
if (!ehooks_purge_lazy(ehooks, addr, size, 0, size, ind)) {
if (!ehooks_purge_lazy(tsdn, ehooks, addr, size, 0, size,
ind)) {
goto label_post_reentrancy;
}
/* Nothing worked. That's the application's problem. */