aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2017-05-16 14:26:30 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-05-16 14:26:30 +0000
commitb253d2c8837d296ee62bbf91366471fab1c7f407 (patch)
treea2782e01107c9a30df9b22c8dcaf08cddc3083dd
parent2b3ac544b561624cefce9d87c0f1eec0d530368e (diff)
parent029ce303a1e7591f2da1b09b13a7b961afdde030 (diff)
downloadjemalloc-b253d2c8837d296ee62bbf91366471fab1c7f407.tar.gz
Change the decay timer default to 0. am: a6f685beac am: dadf1b6d04
am: 029ce303a1 Change-Id: I8408ec5a54ba0ea51afb5a81a44c5a44753edddd
-rw-r--r--include/jemalloc/internal/arena.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/include/jemalloc/internal/arena.h b/include/jemalloc/internal/arena.h
index 0792951..9e4bf04 100644
--- a/include/jemalloc/internal/arena.h
+++ b/include/jemalloc/internal/arena.h
@@ -30,13 +30,16 @@ typedef enum {
purge_mode_limit = 2
} purge_mode_t;
/* ANDROID change */
-/* Use the decay mode purge method. Do not set this value to zero, since
- * forcing a purge immediately affects performance negatively. Using a
- * small value provides a compromise between performance and extra PSS.
+/* Use the decay mode purge method.
+ * Setting this value to zero results in performance issues because it
+ * causes purges at every free. Leave the default at zero, but zygote
+ * processes will set this to one using mallopt. This allows apps which
+ * tend to be active to benefit from the extra performance, but allow system
+ * servers to free PSS while they are sitting idle.
*/
#define PURGE_DEFAULT purge_mode_decay
/* Default decay time in seconds. */
-#define DECAY_TIME_DEFAULT 1
+#define DECAY_TIME_DEFAULT 0
/* End ANDROID change */
/* Number of event ticks between time checks. */
#define DECAY_NTICKS_PER_UPDATE 1000