From 173d692bc2e87d476a8ef45b671cf9ac98695c15 Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 10 Jan 2017 11:25:39 +0100 Subject: Defrag: activate it only if running modified version of Jemalloc. This commit also includes minor aesthetic changes like removal of trailing spaces. --- deps/jemalloc/include/jemalloc/jemalloc_macros.h.in | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'deps/jemalloc') 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 -- cgit v1.2.1