aboutsummaryrefslogtreecommitdiff
path: root/malloc/malloc.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2016-02-19 17:07:04 +0100
committerFlorian Weimer <fweimer@redhat.com>2016-02-19 17:07:04 +0100
commitca135f824b1dbaf43e4a673de7725db76a51b714 (patch)
tree487c36e49482479f9f9a88094cf8896827dadc88 /malloc/malloc.c
parent00d4e2ea3503e6de0f198cd65343f287a51f04db (diff)
downloadglibc-ca135f824b1dbaf43e4a673de7725db76a51b714.tar
glibc-ca135f824b1dbaf43e4a673de7725db76a51b714.tar.gz
glibc-ca135f824b1dbaf43e4a673de7725db76a51b714.tar.bz2
glibc-ca135f824b1dbaf43e4a673de7725db76a51b714.zip
malloc: Remove max_total_mem member form struct malloc_par
Also note that sumblks in struct mallinfo is always 0. No functional change.
Diffstat (limited to 'malloc/malloc.c')
-rw-r--r--malloc/malloc.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/malloc/malloc.c b/malloc/malloc.c
index 86e2a03452..1038df4864 100644
--- a/malloc/malloc.c
+++ b/malloc/malloc.c
@@ -649,8 +649,7 @@ libc_hidden_proto (__libc_mallopt)
have been freed but not use resused or consolidated)
hblks: current number of mmapped regions
hblkhd: total bytes held in mmapped regions
- usmblks: the maximum total allocated space. This will be greater
- than current total if trimming has occurred.
+ usmblks: always 0
fsmblks: total bytes held in fastbin blocks
uordblks: current total allocated space (normal or mmapped)
fordblks: total free space
@@ -1743,10 +1742,7 @@ struct malloc_par
/* Statistics */
INTERNAL_SIZE_T mmapped_mem;
- /*INTERNAL_SIZE_T sbrked_mem;*/
- /*INTERNAL_SIZE_T max_sbrked_mem;*/
INTERNAL_SIZE_T max_mmapped_mem;
- INTERNAL_SIZE_T max_total_mem; /* only kept for NO_THREADS */
/* First address handed out by MORECORE/sbrk. */
char *sbrk_base;
@@ -4665,7 +4661,7 @@ int_mallinfo (mstate av, struct mallinfo *m)
{
m->hblks = mp_.n_mmaps;
m->hblkhd = mp_.mmapped_mem;
- m->usmblks = mp_.max_total_mem;
+ m->usmblks = 0;
m->keepcost = chunksize (av->top);
}
}