[PATCH 1/2] Remove unused variable in arena_run_split

Mike Hommey mh+jemalloc at glandium.org
Tue Feb 21 05:18:49 PST 2012


From: Mike Hommey <mh at glandium.org>

---
 src/arena.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/arena.c b/src/arena.c
index 33f3f85..c3413f3 100644
--- a/src/arena.c
+++ b/src/arena.c
@@ -281,12 +281,11 @@ arena_run_split(arena_t *arena, arena_run_t *run, size_t size, bool large,
     bool zero)
 {
 	arena_chunk_t *chunk;
-	size_t old_ndirty, run_ind, total_pages, need_pages, rem_pages, i;
+	size_t run_ind, total_pages, need_pages, rem_pages, i;
 	size_t flag_dirty;
 	arena_avail_tree_t *runs_avail;
 
 	chunk = (arena_chunk_t *)CHUNK_ADDR2BASE(run);
-	old_ndirty = chunk->ndirty;
 	run_ind = (unsigned)(((uintptr_t)run - (uintptr_t)chunk)
 	    >> PAGE_SHIFT);
 	flag_dirty = chunk->map[run_ind-map_bias].bits & CHUNK_MAP_DIRTY;
-- 
1.7.9




More information about the jemalloc-discuss mailing list