Fix a regression in tcache_bin_flush_small().

Fix a serious regression in tcache_bin_flush_small() that was introduced
by 1cb181ed63 (Implement explicit tcache
support.).
This commit is contained in:
Jason Evans 2015-02-12 00:09:37 -08:00
parent 051eae8cc5
commit 064dbfbaf7

View File

@ -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))