From e2aad5e810853ebfa285b361563120bd1925ca19 Mon Sep 17 00:00:00 2001 From: Qi Wang Date: Tue, 25 Apr 2017 13:33:22 -0700 Subject: [PATCH] Remove redundant extent lookup in tcache_bin_flush_large. --- src/tcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tcache.c b/src/tcache.c index c272a3c4..e2474a32 100644 --- a/src/tcache.c +++ b/src/tcache.c @@ -215,7 +215,7 @@ tcache_bin_flush_large(tsd_t *tsd, tcache_bin_t *tbin, szind_t binind, for (unsigned i = 0; i < nflush; i++) { void *ptr = *(tbin->avail - 1 - i); assert(ptr != NULL); - extent = iealloc(tsd_tsdn(tsd), ptr); + extent = item_extent[i]; if (extent_arena_get(extent) == locked_arena) { large_dalloc_prep_junked_locked(tsd_tsdn(tsd), extent);