summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Evans <je@fb.com>2012-02-29 05:08:19 (GMT)
committerJason Evans <je@fb.com>2012-02-29 05:08:19 (GMT)
commit3add8d8cda2993f58fd2eba6efbf4fa12d5c72f3 (patch)
tree9c4b06710cba742067eaf2de93d2f04461358cfe
parent777c191485452251fbecfe6638a4a54c651e25b3 (diff)
downloadjemalloc-3add8d8cda2993f58fd2eba6efbf4fa12d5c72f3.zip
jemalloc-3add8d8cda2993f58fd2eba6efbf4fa12d5c72f3.tar.gz
jemalloc-3add8d8cda2993f58fd2eba6efbf4fa12d5c72f3.tar.bz2
Remove unused variables in tcache_dalloc_large().
Submitted by Mike Hommey.
-rw-r--r--include/jemalloc/internal/tcache.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/include/jemalloc/internal/tcache.h b/include/jemalloc/internal/tcache.h
index b964a12..77bca8d 100644
--- a/include/jemalloc/internal/tcache.h
+++ b/include/jemalloc/internal/tcache.h
@@ -360,9 +360,7 @@ tcache_dalloc_small(tcache_t *tcache, void *ptr)
JEMALLOC_INLINE void
tcache_dalloc_large(tcache_t *tcache, void *ptr, size_t size)
{
- arena_t *arena;
- arena_chunk_t *chunk;
- size_t pageind, binind;
+ size_t binind;
tcache_bin_t *tbin;
tcache_bin_info_t *tbin_info;
@@ -370,9 +368,6 @@ tcache_dalloc_large(tcache_t *tcache, void *ptr, size_t size)
assert(arena_salloc(ptr) > SMALL_MAXCLASS);
assert(arena_salloc(ptr) <= tcache_maxclass);
- chunk = (arena_chunk_t *)CHUNK_ADDR2BASE(ptr);
- arena = chunk->arena;
- pageind = ((uintptr_t)ptr - (uintptr_t)chunk) >> PAGE_SHIFT;
binind = NBINS + (size >> PAGE_SHIFT) - 1;
if (config_fill && opt_junk)