Skip to content

Commit

Permalink
Changes tcmalloc.h header location (valkey-io#1039)
Browse files Browse the repository at this point in the history
This commit changes the `tcmalloc.h` header location from the deprecated
location `google/` to `gperftools/`.

**Why we're doing this now?**

The location `google/tcmalloc.h` has been deprecated for more than 10
years in favor of `gperftools/tcmalloc.h`, and the deprecated location
will be removed in the next release of gperftools.

Fixes valkey-io#1033

Signed-off-by: Ricardo Dias <ricardo.dias@percona.com>
Signed-off-by: naglera <anagler123@gmail.com>
  • Loading branch information
rjd15372 authored and naglera committed Oct 10, 2024
1 parent caeca60 commit 99e5411
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zmalloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

#if 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)
Expand Down

0 comments on commit 99e5411

Please sign in to comment.