summaryrefslogtreecommitdiffstats
path: root/libc/upstream-dlmalloc/malloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/upstream-dlmalloc/malloc.c')
-rw-r--r--libc/upstream-dlmalloc/malloc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libc/upstream-dlmalloc/malloc.c b/libc/upstream-dlmalloc/malloc.c
index 4362f49..3c9d36b 100644
--- a/libc/upstream-dlmalloc/malloc.c
+++ b/libc/upstream-dlmalloc/malloc.c
@@ -3526,7 +3526,9 @@ static struct mallinfo internal_mallinfo(mstate m) {
nm.arena = sum;
nm.ordblks = nfree;
nm.hblkhd = m->footprint - sum;
- nm.usmblks = m->max_footprint;
+ /* BEGIN android-changed: usmblks set to footprint from max_footprint */
+ nm.usmblks = m->footprint;
+ /* END android-changed */
nm.uordblks = m->footprint - mfree;
nm.fordblks = mfree;
nm.keepcost = m->topsize;