diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2024-05-07 23:04:55 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2024-05-07 23:04:55 +0000 |
commit | 5efd68b9aaa518322c5e2a7f3a86a5ba4aa2f19e (patch) | |
tree | 8fa6d8639a07cb6677ffcd5811ec5a6d431d7d1b | |
parent | 054d95eaaed59e66e443be584340b6baa4ddd845 (diff) | |
parent | e1bcc3ee4a3de65e97973ca91629d462b5e62be4 (diff) | |
download | jemalloc_new-sdk-release.tar.gz |
Snap for 11812660 from e1bcc3ee4a3de65e97973ca91629d462b5e62be4 to sdk-releasesdk-release
Change-Id: Ifa91aab7ffa708176e5ba1871271c00749c064f8
-rw-r--r-- | Android.bp | 28 |
1 files changed, 14 insertions, 14 deletions
@@ -92,30 +92,30 @@ common_c_local_includes = [ // 1 << XX is the maximum sized allocation that will be in the tcache. android_common_cflags = [ - // Default some parameters to small values to minimize PSS. - // These parameters will be overridden by android_product_variables - // for non-svelte configs. - "-DANDROID_NUM_ARENAS=1", - // This value cannot go below 2. - "-DANDROID_TCACHE_NSLOTS_SMALL_MAX=2", - "-DANDROID_TCACHE_NSLOTS_LARGE=1", + // Default parameters for jemalloc config. + "-DANDROID_ENABLE_TCACHE", + "-DANDROID_LG_TCACHE_MAXCLASS_DEFAULT=16", + "-DANDROID_NUM_ARENAS=2", + "-DANDROID_TCACHE_NSLOTS_SMALL_MAX=8", + "-DANDROID_TCACHE_NSLOTS_LARGE=16", ] android_product_variables = { - // Only enable the tcache on non-svelte configurations, to save PSS. - malloc_not_svelte: { + malloc_low_memory: { + // Parameters to minimize RSS. cflags: [ - "-DANDROID_ENABLE_TCACHE", - "-DANDROID_LG_TCACHE_MAXCLASS_DEFAULT=16", + // Disable the tcache on non-svelte configurations, to save PSS. + "-UANDROID_ENABLE_TCACHE", "-UANDROID_NUM_ARENAS", - "-DANDROID_NUM_ARENAS=2", + "-DANDROID_NUM_ARENAS=1", + // This value cannot go below 2. "-UANDROID_TCACHE_NSLOTS_SMALL_MAX", - "-DANDROID_TCACHE_NSLOTS_SMALL_MAX=8", + "-DANDROID_TCACHE_NSLOTS_SMALL_MAX=2", "-UANDROID_TCACHE_NSLOTS_LARGE", - "-DANDROID_TCACHE_NSLOTS_LARGE=16", + "-DANDROID_TCACHE_NSLOTS_LARGE=1", ], }, } |