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

Unified Diff: Source/wtf/TCSystemAlloc.h

Issue 22661006: Make HAVE_MADV_FREE, HAVE_MADV_FREE_REUSE and HAVE_VIRTUALALLOC local macros as it only used in wtf… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased patch Created 7 years, 4 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 | « Source/wtf/Platform.h ('k') | Source/wtf/TCSystemAlloc.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/TCSystemAlloc.h
diff --git a/Source/wtf/TCSystemAlloc.h b/Source/wtf/TCSystemAlloc.h
index 247ea7cfba40e062d9f3d27608bd7f8ae10ee94b..c23a3dc10d39a08c67e3162e04954617b463a1c4 100644
--- a/Source/wtf/TCSystemAlloc.h
+++ b/Source/wtf/TCSystemAlloc.h
@@ -64,11 +64,16 @@ extern void TCMalloc_SystemRelease(void* start, size_t length);
extern void TCMalloc_SystemCommit(void* start, size_t length);
-#if !HAVE(MADV_FREE_REUSE) && !HAVE(MADV_DONTNEED) && !HAVE(MMAP) && !HAVE(VIRTUALALLOC)
+#if OS(DARWIN)
+#define HAVE_MADV_FREE 1
+#define HAVE_MADV_FREE_REUSE 1
+#endif
+
+#if !HAVE(MADV_FREE_REUSE) && !HAVE(MADV_DONTNEED) && !HAVE(MMAP)
inline void TCMalloc_SystemRelease(void*, size_t) { }
#endif
-#if !HAVE(VIRTUALALLOC) && !HAVE(MADV_FREE_REUSE)
+#if !HAVE(MADV_FREE_REUSE)
inline void TCMalloc_SystemCommit(void*, size_t) { }
#endif
« no previous file with comments | « Source/wtf/Platform.h ('k') | Source/wtf/TCSystemAlloc.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698