aboutsummaryrefslogtreecommitdiff
path: root/malloc/malloc.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2016-02-19 17:06:33 +0100
committerFlorian Weimer <fweimer@redhat.com>2016-02-19 17:06:33 +0100
commit00d4e2ea3503e6de0f198cd65343f287a51f04db (patch)
treee81b251d3f58e479bb34283b6fab79c565119515 /malloc/malloc.c
parentaff8c7a9a700d31bdbc0ccb1b8f594ab62255e16 (diff)
downloadglibc-00d4e2ea3503e6de0f198cd65343f287a51f04db.tar
glibc-00d4e2ea3503e6de0f198cd65343f287a51f04db.tar.gz
glibc-00d4e2ea3503e6de0f198cd65343f287a51f04db.tar.bz2
glibc-00d4e2ea3503e6de0f198cd65343f287a51f04db.zip
malloc: Remove arena_mem variable
The computed value is never used. The accesses were data races.
Diffstat (limited to 'malloc/malloc.c')
-rw-r--r--malloc/malloc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/malloc/malloc.c b/malloc/malloc.c
index d20d5955db..86e2a03452 100644
--- a/malloc/malloc.c
+++ b/malloc/malloc.c
@@ -2410,7 +2410,6 @@ sysmalloc (INTERNAL_SIZE_T nb, mstate av)
&& grow_heap (old_heap, MINSIZE + nb - old_size) == 0)
{
av->system_mem += old_heap->size - old_heap_size;
- arena_mem += old_heap->size - old_heap_size;
set_head (old_top, (((char *) old_heap + old_heap->size) - (char *) old_top)
| PREV_INUSE);
}
@@ -2420,7 +2419,6 @@ sysmalloc (INTERNAL_SIZE_T nb, mstate av)
heap->ar_ptr = av;
heap->prev = old_heap;
av->system_mem += heap->size;
- arena_mem += heap->size;
/* Set up the new top. */
top (av) = chunk_at_offset (heap, sizeof (*heap));
set_head (top (av), (heap->size - sizeof (*heap)) | PREV_INUSE);