diff options
author | Qi Wang <interwq@gwu.edu> | 2017-11-28 20:21:58 (GMT) |
---|---|---|
committer | Qi Wang <interwq@gmail.com> | 2017-11-29 05:52:49 (GMT) |
commit | 6e841f618a5ff99001a9578e9ff73602e7a94620 (patch) | |
tree | 3fccd527d356ec8967f95e84ad78b8b275f9900b /src/extent.c | |
parent | 26a8f82c484eada4188e56daad32ed6a16b4b585 (diff) | |
download | jemalloc-6e841f618a5ff99001a9578e9ff73602e7a94620.zip jemalloc-6e841f618a5ff99001a9578e9ff73602e7a94620.tar.gz jemalloc-6e841f618a5ff99001a9578e9ff73602e7a94620.tar.bz2 |
Add more tests for extent hooks failure paths.
Diffstat (limited to 'src/extent.c')
-rw-r--r-- | src/extent.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/extent.c b/src/extent.c index ee50aff..7e10b7f 100644 --- a/src/extent.c +++ b/src/extent.c @@ -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; } |