- try again to fix the Windows build
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 15 Dec 2007 02:09:16 +0000 (02:09 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 15 Dec 2007 02:09:16 +0000 (02:09 +0000)
        * wtf/TCSystemAlloc.cpp:
        (TCMalloc_SystemRelease):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28733 268f45cc-cd09-0410-ab3c-d52691b4dbfc

JavaScriptCore/ChangeLog
JavaScriptCore/wtf/TCSystemAlloc.cpp

index 4af07cd3ade63957ad6bf8b263c4d7ca018dcc9a..bad34e95b23ddce0c29fe3b1047655f15fed246c 100644 (file)
@@ -1,3 +1,10 @@
+2007-12-14  Dan Bernstein  <mitz@apple.com>
+
+        - try again to fix the Windows build
+
+        * wtf/TCSystemAlloc.cpp:
+        (TCMalloc_SystemRelease):
+
 2007-12-14  Dan Bernstein  <mitz@apple.com>
 
         - try to fix the Windows build
index 0f7558bce4909f58b3f50ed4758d0d6ee04fe7ea..f671bf1241fe229a306b5d329ca874c3cf1136d0 100644 (file)
@@ -380,7 +380,9 @@ void* TCMalloc_SystemAlloc(size_t size, size_t *actual_size, size_t alignment) {
   return NULL;
 }
 
-#ifdef MADV_DONTNEED
+#ifndef MADV_DONTNEED
+void TCMalloc_SystemRelease(void*, size_t) {
+#else
 void TCMalloc_SystemRelease(void* start, size_t length) {
   if (FLAGS_malloc_devmem_start) {
     // It's not safe to use MADV_DONTNEED if we've been mapping
@@ -413,8 +415,6 @@ void TCMalloc_SystemRelease(void* start, size_t length) {
       // NOP
     }
   }
-#else
-void TCMalloc_SystemRelease(void*, size_t) { }
 #endif
 
 #if HAVE(MMAP)