aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2017-05-25 07:14:38 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2017-05-25 07:14:38 +0000
commitd5c1bf179a45738c221062c82f4544d48431547c (patch)
tree40e206842590a3f28d39e164f733d09ac6c3656a
parentb43ab5d1ba0c131ac0fbf5136c2bfd2bcd5df959 (diff)
parent7d7fbe660d1fe68fa412449d6033177319c7da3e (diff)
downloadjemalloc-oreo-release.tar.gz
Change-Id: I6d064109d96d7799df7b209611d3d2d64916b332
-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 1ab91ea..df6e0b2 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