diff options
Diffstat (limited to 'base/process/memory.h')
-rw-r--r-- | base/process/memory.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/base/process/memory.h b/base/process/memory.h index e6696cb..8187032 100644 --- a/base/process/memory.h +++ b/base/process/memory.h @@ -14,6 +14,14 @@ #include <windows.h> #endif +#ifdef PVALLOC_AVAILABLE +// Build config explicitly tells us whether or not pvalloc is available. +#elif defined(LIBC_GLIBC) && !defined(USE_TCMALLOC) +#define PVALLOC_AVAILABLE 1 +#else +#define PVALLOC_AVAILABLE 0 +#endif + namespace base { // Enables low fragmentation heap (LFH) for every heaps of this process. This |