Index: Source/wtf/TCSystemAlloc.h |
diff --git a/Source/wtf/TCSystemAlloc.h b/Source/wtf/TCSystemAlloc.h |
index 247ea7cfba40e062d9f3d27608bd7f8ae10ee94b..8a5080793c0ff82c8224cd082b9c2549a6cc0871 100644 |
--- a/Source/wtf/TCSystemAlloc.h |
+++ b/Source/wtf/TCSystemAlloc.h |
@@ -64,6 +64,15 @@ extern void TCMalloc_SystemRelease(void* start, size_t length); |
extern void TCMalloc_SystemCommit(void* start, size_t length); |
+#if OS(DARWIN) |
+#define HAVE_MADV_FREE 1 |
+#define HAVE_MADV_FREE_REUSE 1 |
+#endif |
+ |
+#if OS(WINDOWS) |
+#define HAVE_VIRTUALALLOC 1 |
abarth-chromium
2013/08/12 20:32:17
We don't use TC* on Window. You can probably remo
|
+#endif |
+ |
#if !HAVE(MADV_FREE_REUSE) && !HAVE(MADV_DONTNEED) && !HAVE(MMAP) && !HAVE(VIRTUALALLOC) |
inline void TCMalloc_SystemRelease(void*, size_t) { } |
#endif |