Add more tests for extent hooks failure paths.

This commit is contained in:
Qi Wang
2017-11-28 12:21:58 -08:00
committed by Qi Wang
parent 26a8f82c48
commit 6e841f618a
3 changed files with 25 additions and 3 deletions

View File

@@ -988,9 +988,12 @@ extent_recycle_split(tsdn_t *tsdn, arena_t *arena,
extent_deregister(tsdn, to_salvage);
}
if (to_leak != NULL) {
void *leak = extent_base_get(to_leak);
extent_deregister(tsdn, to_leak);
extents_leak(tsdn, arena, r_extent_hooks, extents,
to_leak, growing_retained);
assert(extent_lock_from_addr(tsdn, rtree_ctx, leak)
== NULL);
}
return NULL;
}