Index: base/process/memory.h |
diff --git a/base/process/memory.h b/base/process/memory.h |
index e6696cb8a708748a7b9b5724328d5f87c396f3ac..8187032f8b7d5c77d1663c3158c776a3fcd9d2fa 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 |