OSDN Git Service

Add support for modifying decay timer.
authorChristopher Ferris <cferris@google.com>
Mon, 15 May 2017 22:50:19 +0000 (15:50 -0700)
committerChristopher Ferris <cferris@google.com>
Mon, 15 May 2017 23:59:16 +0000 (16:59 -0700)
commita1c0d2fd4ce96e123c4ae6506c9d637d747e1fe2
treeb1f89edbd67d6b09b9cbdfb1bf03b65b2dac9ad4
parentac58d33d343eba6a3370f541467f09802c48b24b
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).
Change-Id: I6927929b0c539c1023d34772d9e26bb6a8a45877
14 files changed:
libc/bionic/jemalloc.h
libc/bionic/jemalloc_wrapper.cpp
libc/bionic/malloc_common.cpp
libc/include/malloc.h
libc/libc.arm.map
libc/libc.arm64.map
libc/libc.mips.map
libc/libc.mips64.map
libc/libc.x86.map
libc/libc.x86_64.map
libc/malloc_debug/malloc_debug.cpp
libc/malloc_debug/tests/malloc_debug_unit_tests.cpp
libc/private/bionic_malloc_dispatch.h
tests/malloc_test.cpp