about summary refs log tree commit diff
path: root/malloc/arena.c
diff options
context:
space:
mode:
Diffstat (limited to 'malloc/arena.c')
-rw-r--r--malloc/arena.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/malloc/arena.c b/malloc/arena.c
index 1edb4d4d35..54cf0865ea 100644
--- a/malloc/arena.c
+++ b/malloc/arena.c
@@ -91,9 +91,6 @@ static mstate free_list;
    acquired.  */
 static mutex_t list_lock = _LIBC_LOCK_INITIALIZER;
 
-/* Mapped memory in non-main arenas (reliable only for NO_THREADS). */
-static unsigned long arena_mem;
-
 /* Already initialized? */
 int __malloc_initialized = -1;
 
@@ -705,7 +702,6 @@ heap_trim (heap_info *heap, size_t pad)
       if (new_size + (HEAP_MAX_SIZE - prev_heap->size) < pad + MINSIZE + pagesz)
         break;
       ar_ptr->system_mem -= heap->size;
-      arena_mem -= heap->size;
       LIBC_PROBE (memory_heap_free, 2, heap, heap->size);
       delete_heap (heap);
       heap = prev_heap;
@@ -743,7 +739,6 @@ heap_trim (heap_info *heap, size_t pad)
     return 0;
 
   ar_ptr->system_mem -= extra;
-  arena_mem -= extra;
 
   /* Success. Adjust top accordingly. */
   set_head (top_chunk, (top_size - extra) | PREV_INUSE);
@@ -793,7 +788,6 @@ _int_new_arena (size_t size)
   a->attached_threads = 1;
   /*a->next = NULL;*/
   a->system_mem = a->max_system_mem = h->size;
-  arena_mem += h->size;
 
   /* Set up the top chunk, with proper alignment. */
   ptr = (char *) (a + 1);