include jemalloc.h

This commit is contained in:
c9s 2014-05-21 22:08:25 +08:00
parent eaa11d5380
commit e8653eeb28

View file

@ -61,6 +61,7 @@ void zlibc_free(void *ptr) {
#define realloc(ptr,size) tc_realloc(ptr,size) #define realloc(ptr,size) tc_realloc(ptr,size)
#define free(ptr) tc_free(ptr) #define free(ptr) tc_free(ptr)
#elif defined(USE_JEMALLOC) #elif defined(USE_JEMALLOC)
#include <jemalloc/jemalloc.h>
#define malloc(size) je_malloc(size) #define malloc(size) je_malloc(size)
#define calloc(count,size) je_calloc(count,size) #define calloc(count,size) je_calloc(count,size)
#define realloc(ptr,size) je_realloc(ptr,size) #define realloc(ptr,size) je_realloc(ptr,size)