aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2019-04-08 20:00:14 -0700
committerandroid-build-merger <android-build-merger@google.com>2019-04-08 20:00:14 -0700
commit592a1ea7a9648e08d578a71ecba9c6d2f2e25364 (patch)
treec2fc6155506e509081b8f5d54fd1e89464bf6958
parent08d6c0f8458c9380d9c404d55fea17176d588afa (diff)
parent0af4ee86dfa643feb786d659dbb219133c776a34 (diff)
downloadplatform_external_jemalloc_new-592a1ea7a9648e08d578a71ecba9c6d2f2e25364.tar.gz
platform_external_jemalloc_new-592a1ea7a9648e08d578a71ecba9c6d2f2e25364.tar.bz2
platform_external_jemalloc_new-592a1ea7a9648e08d578a71ecba9c6d2f2e25364.zip
Fix performance of multiple same size allocations.
am: 0af4ee86df Change-Id: I8037624a45d0ddb462d33f41310f0ac26f0a5500
-rw-r--r--Android.bp4
1 files changed, 1 insertions, 3 deletions
diff --git a/Android.bp b/Android.bp
index e2a29024..4fa62844 100644
--- a/Android.bp
+++ b/Android.bp
@@ -59,9 +59,6 @@ common_c_local_includes = [
// 1 << XX is the maximum sized allocation that will be in the tcache.
android_common_cflags = [
- "-DANDROID_TCACHE_NSLOTS_SMALL_MIN=1",
- "-DANDROID_LG_TCACHE_MAXCLASS_DEFAULT=16",
-
// Default some parameters to small values to minimize PSS.
// These parameters will be overridden by android_product_variables
// for non-svelte configs.
@@ -76,6 +73,7 @@ android_product_variables = {
malloc_not_svelte: {
cflags: [
"-DANDROID_ENABLE_TCACHE",
+ "-DANDROID_LG_TCACHE_MAXCLASS_DEFAULT=16",
"-UANDROID_NUM_ARENAS",
"-DANDROID_NUM_ARENAS=2",