OSDN Git Service

Return total footprint, not high water mark.
authorChristopher Ferris <cferris@google.com>
Fri, 10 Oct 2014 15:40:21 +0000 (08:40 -0700)
committerChristopher Ferris <cferris@google.com>
Mon, 13 Oct 2014 19:45:35 +0000 (12:45 -0700)
commitfee09e556f3414bc1027809477c0019084cc01c1
tree3222d98e7842d30b2da29774e2ceeca943d70a67
parent94571f9ade03cfe24bff1bddc4d6c1a320b39b8e
Return total footprint, not high water mark.

The mallinfo usmblks value returned by dlmalloc is a little misleading.
It's not the current max, it's the historical high water mark. This
leads to dumpsys meminfo producing native memory numbers that don't add up.
Change this to the real total footprint, not this high water mark.

Bug: 17265653

(cherry pick from commit f4ada9c9ce31c7e56146a4cb703747385bc043a5)

Change-Id: I2fba10285859dccfe8331063c9be14cc169f2d91
libc/upstream-dlmalloc/malloc.c