summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQi Wang <interwq@gwu.edu>2017-04-25 20:33:22 (GMT)
committerQi Wang <interwq@gmail.com>2017-04-25 23:50:12 (GMT)
commite2aad5e810853ebfa285b361563120bd1925ca19 (patch)
treecaf6a99d33bf217d7a8a3d37308fb5975966d2a9 /src
parent05775a37360c7f1d41dc57b73ed5c0f259024d9f (diff)
downloadjemalloc-e2aad5e810853ebfa285b361563120bd1925ca19.zip
jemalloc-e2aad5e810853ebfa285b361563120bd1925ca19.tar.gz
jemalloc-e2aad5e810853ebfa285b361563120bd1925ca19.tar.bz2
Remove redundant extent lookup in tcache_bin_flush_large.
Diffstat (limited to 'src')
-rw-r--r--src/tcache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tcache.c b/src/tcache.c
index c272a3c..e2474a3 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);