X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/ded614f803f56ad979da76485e74732ecdcc57fd..5282562117565c54ecf3153901a80a244a0577ba:/src/config.h diff --git a/src/config.h b/src/config.h index d98067c1..7e1133ec 100644 --- a/src/config.h +++ b/src/config.h @@ -15,6 +15,13 @@ #define HAVE_MALLOC_SIZE 1 #define redis_malloc_size(p) tc_malloc_size(p) #endif +#elif defined(USE_JEMALLOC) +#define JEMALLOC_MANGLE +#include +#if JEMALLOC_VERSION_MAJOR >= 2 && JEMALLOC_VERSION_MINOR >= 1 +#define HAVE_MALLOC_SIZE 1 +#define redis_malloc_size(p) JEMALLOC_P(malloc_usable_size)(p) +#endif #elif defined(__APPLE__) #include #define HAVE_MALLOC_SIZE 1