Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5069)

Unified Diff: base/process/memory.h

Issue 184313002: only do linux pvalloc OutOfMemoryDeathTest on non-tcmalloc glibc builds (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move ifdef for clarity Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/process/memory_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | base/process/memory_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698