aboutsummaryrefslogtreecommitdiff
path: root/src/tcache.c
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2015-02-12 00:09:37 -0800
committerJason Evans <jasone@canonware.com>2015-02-12 00:15:16 -0800
commit064dbfbaf76617643bbbe66cbcc880e7ee9ec00f (patch)
treee3067cd1b5d0aa47723f73ab97a3f3ce99ca7627 /src/tcache.c
parent051eae8cc591dfa2955cbfa73aae79ab53620c08 (diff)
downloadjemalloc-064dbfbaf76617643bbbe66cbcc880e7ee9ec00f.tar.gz
Fix a regression in tcache_bin_flush_small().
Fix a serious regression in tcache_bin_flush_small() that was introduced by 1cb181ed632e7573fb4eab194e4d216867222d27 (Implement explicit tcache support.).
Diffstat (limited to 'src/tcache.c')
-rw-r--r--src/tcache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tcache.c b/src/tcache.c
index 9fe78c3..1166d60 100644
--- a/src/tcache.c
+++ b/src/tcache.c
@@ -103,7 +103,7 @@ tcache_bin_flush_small(tsd_t *tsd, tcache_bin_t *tbin, index_t binind,
arena_chunk_t *chunk = (arena_chunk_t *)CHUNK_ADDR2BASE(
tbin->avail[0]);
arena_t *bin_arena = chunk->arena;
- arena_bin_t *bin = &arena->bins[binind];
+ arena_bin_t *bin = &bin_arena->bins[binind];
if (config_prof && bin_arena == arena) {
if (arena_prof_accum(arena, tcache->prof_accumbytes))