summaryrefslogtreecommitdiff
path: root/deps
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2017-01-10 11:25:39 +0100
committerantirez <antirez@gmail.com>2017-01-10 11:25:39 +0100
commit173d692bc2e87d476a8ef45b671cf9ac98695c15 (patch)
treef155e0dccacab019834d758584cee7f3e864dcb7 /deps
parent5ab6a54cc619e750daac59baef7b9f9dc1f87db9 (diff)
downloadredis-173d692bc2e87d476a8ef45b671cf9ac98695c15.tar.gz
Defrag: activate it only if running modified version of Jemalloc.
This commit also includes minor aesthetic changes like removal of trailing spaces.
Diffstat (limited to 'deps')
-rw-r--r--deps/jemalloc/include/jemalloc/jemalloc_macros.h.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/deps/jemalloc/include/jemalloc/jemalloc_macros.h.in b/deps/jemalloc/include/jemalloc/jemalloc_macros.h.in
index 7f64d9ff9..a7028db34 100644
--- a/deps/jemalloc/include/jemalloc/jemalloc_macros.h.in
+++ b/deps/jemalloc/include/jemalloc/jemalloc_macros.h.in
@@ -100,3 +100,7 @@
# define JEMALLOC_RESTRICT_RETURN
# define JEMALLOC_ALLOCATOR
#endif
+
+/* This version of Jemalloc, modified for Redis, has the je_get_defrag_hint()
+ * function. */
+#define JEMALLOC_FRAG_HINT