summaryrefslogtreecommitdiff
path: root/libc/malloc_hooks/malloc_hooks.cpp
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2017-05-15 15:50:19 -0700
committerChristopher Ferris <cferris@google.com>2017-05-23 13:43:14 -0700
commitf187faa5fa26cbe71d308e0acd10a4003ec0c0be (patch)
tree24129b51b1a5d7583c4647bd195083b655a9e5ea /libc/malloc_hooks/malloc_hooks.cpp
parenta46ed8f52b7a5813657cb4e1ce93b7919fc53e60 (diff)
Add support for modifying decay timer.
Add the mallopt function, and only a single option so far. Bug: 36401135 Test: Built and booted bullhead. Test: Ran jemalloc unit tests. Test: Ran bionic unit tests. Test: Ran a test that allocated and free'd a large piece of memory, Test: and verified that after changing the parameter, the PSS Test: sticks around (decay timer set to 1), the PSS is purged (decay Test: timer set to 0). (cherry picked from commit a1c0d2fd4ce96e123c4ae6506c9d637d747e1fe2) Change-Id: Ie8125dc3a5615a859efb66dc91a6feeb0d57b478
Diffstat (limited to 'libc/malloc_hooks/malloc_hooks.cpp')
0 files changed, 0 insertions, 0 deletions