summaryrefslogtreecommitdiff
path: root/core/jni/fd_utils.cpp
diff options
context:
space:
mode:
authorChris Wailes <chriswailes@google.com>2020-01-28 17:26:56 -0800
committerChris Wailes <chriswailes@google.com>2020-01-29 15:49:49 -0800
commitaa0932d79a776e7613fbc0fd3faf697d06b5d26f (patch)
treeba3430a76f29f4920f0f21f142cb35e95c319024 /core/jni/fd_utils.cpp
parent07acec49edfe6df7a7c9191715640f366c5c465c (diff)
Purge unused native memory before Zygote fork events
This CL causes the Zygote to purge unused native memory before fork events. This results in a decrease in the RSS before a fork, which decreases false sharing between parent and child, and results in less private dirty memory in the child when allocations and deallocations begin to dirty bookkeeping data on pages in the anon:libc_malloc memory region. The result of these changes is a negligible change to application startup times, the reduction of usap32 process private dirty memory by 40 KiB and usap64 process private dirty memory by 128 KiB. Application RSS and private dirty memory usage (for Calendar) was reduced by 804 KiB and 624 KiB respectively. Test: Launched Calendar 500 times Change-Id: I52f72a5a02182a9e2748f7f87b45665059d9891a Merged-In: I52f72a5a02182a9e2748f7f87b45665059d9891a
Diffstat (limited to 'core/jni/fd_utils.cpp')
0 files changed, 0 insertions, 0 deletions