check jemalloc version
This commit is contained in:
parent
4d0c22d8ec
commit
07ef938e3d
1 changed files with 2 additions and 3 deletions
|
@ -48,14 +48,13 @@
|
||||||
#elif defined(USE_JEMALLOC)
|
#elif defined(USE_JEMALLOC)
|
||||||
#define ZMALLOC_LIB ("jemalloc-" __xstr(JEMALLOC_VERSION_MAJOR) "." __xstr(JEMALLOC_VERSION_MINOR) "." __xstr(JEMALLOC_VERSION_BUGFIX))
|
#define ZMALLOC_LIB ("jemalloc-" __xstr(JEMALLOC_VERSION_MAJOR) "." __xstr(JEMALLOC_VERSION_MINOR) "." __xstr(JEMALLOC_VERSION_BUGFIX))
|
||||||
#include <jemalloc/jemalloc.h>
|
#include <jemalloc/jemalloc.h>
|
||||||
/*
|
// #if (JEMALLOC_VERSION_MAJOR == 2 && JEMALLOC_VERSION_MINOR >= 1) || (JEMALLOC_VERSION_MAJOR > 2)
|
||||||
#if (JEMALLOC_VERSION_MAJOR == 2 && JEMALLOC_VERSION_MINOR >= 1) || (JEMALLOC_VERSION_MAJOR > 2)
|
#if JEMALLOC_VERSION_MAJOR > 2
|
||||||
#define HAVE_MALLOC_SIZE 1
|
#define HAVE_MALLOC_SIZE 1
|
||||||
#define zmalloc_size(p) je_malloc_usable_size(p)
|
#define zmalloc_size(p) je_malloc_usable_size(p)
|
||||||
#else
|
#else
|
||||||
#error "Newer version of jemalloc required"
|
#error "Newer version of jemalloc required"
|
||||||
#endif
|
#endif
|
||||||
*/
|
|
||||||
|
|
||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__)
|
||||||
#include <malloc/malloc.h>
|
#include <malloc/malloc.h>
|
||||||
|
|
Loading…
Reference in a new issue