summaryrefslogtreecommitdiff
path: root/libc/malloc_hooks/malloc_hooks.cpp
diff options
context:
space:
mode:
authorVic Yang <victoryang@google.com>2019-01-23 12:19:41 -0800
committerVic Yang <victoryang@google.com>2019-01-23 12:24:46 -0800
commitfb78a4ac1b93218f59aa44089ae5f4dbfababf0d (patch)
tree976bf1fa16427ea8a3bce0cbc6cb29cd94390449 /libc/malloc_hooks/malloc_hooks.cpp
parent176d2fbcaefe4691b8fd7844f6cec8e7a1a22c76 (diff)
linker: Purge block allocator memory when possible
If all allocated memory from a block allocator is freed, it is a good opportunity to purge all the pages allocated to reduce lingering dirty pages. Memory saving varies with the platform and what processes are running. Measuring right after boot, this saves ~1.8MB on cuttelfish and ~1.3MB on a 32-bit ARM device. Bug: 112073665 Test: Boot and check memory usage with 'showmap'. Change-Id: I53769e0ec9699f0b3645cdf281a2c0bbffb98676
Diffstat (limited to 'libc/malloc_hooks/malloc_hooks.cpp')
0 files changed, 0 insertions, 0 deletions