Include gperftools/tcmalloc.h instead of google/tcmalloc.h

Former-commit-id: ee32ed045cb94334773fc12d7b78a6a4ae29f184
This commit is contained in:
VivekSainiEQ 2021-08-17 20:28:23 +00:00 committed by John Sully
parent ae7a09c508
commit af217ab261

View File

@ -42,7 +42,7 @@
#define USE_MALLOC_CLASS 1
#elif defined(USE_TCMALLOC)
#define ZMALLOC_LIB ("tcmalloc-" __xstr(TC_VERSION_MAJOR) "." __xstr(TC_VERSION_MINOR))
#include <google/tcmalloc.h>
#include <gperftools/tcmalloc.h>
#if (TC_VERSION_MAJOR == 1 && TC_VERSION_MINOR >= 6) || (TC_VERSION_MAJOR > 1)
#define HAVE_MALLOC_SIZE 1
#define zmalloc_size(p) tc_malloc_size(p)