aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2024-05-07 23:04:55 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2024-05-07 23:04:55 +0000
commit5efd68b9aaa518322c5e2a7f3a86a5ba4aa2f19e (patch)
tree8fa6d8639a07cb6677ffcd5811ec5a6d431d7d1b
parent054d95eaaed59e66e443be584340b6baa4ddd845 (diff)
parente1bcc3ee4a3de65e97973ca91629d462b5e62be4 (diff)
downloadjemalloc_new-sdk-release.tar.gz
Snap for 11812660 from e1bcc3ee4a3de65e97973ca91629d462b5e62be4 to sdk-releasesdk-release
Change-Id: Ifa91aab7ffa708176e5ba1871271c00749c064f8
-rw-r--r--Android.bp28
1 files changed, 14 insertions, 14 deletions
diff --git a/Android.bp b/Android.bp
index 59db8a3a..fb1a85c2 100644
--- a/Android.bp
+++ b/Android.bp
@@ -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",
],
},
}