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

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

JavaScriptCore/ChangeLog
JavaScriptCore/wtf/TCSystemAlloc.cpp

index 382de45c2cf925952bfae7ce07cce98f23fb0026..4af07cd3ade63957ad6bf8b263c4d7ca018dcc9a 100644 (file)
@@ -1,3 +1,10 @@
+2007-12-14  Dan Bernstein  <mitz@apple.com>
+
+        - try to fix the Windows build
+
+        * wtf/TCSystemAlloc.cpp:
+        (TCMalloc_SystemRelease):
+
 2007-12-14  Mark Rowe <mrowe@apple.com>
 
         Reviewed by Maciej and Oliver.
index ad3de844980a4a08dae94438d8de512363147d46..0f7558bce4909f58b3f50ed4758d0d6ee04fe7ea 100644 (file)
@@ -380,8 +380,8 @@ void* TCMalloc_SystemAlloc(size_t size, size_t *actual_size, size_t alignment) {
   return NULL;
 }
 
-void TCMalloc_SystemRelease(void* start, size_t length) {
 #ifdef MADV_DONTNEED
+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
     // /dev/mem for heap memory
@@ -413,6 +413,8 @@ void TCMalloc_SystemRelease(void* start, size_t length) {
       // NOP
     }
   }
+#else
+void TCMalloc_SystemRelease(void*, size_t) { }
 #endif
 
 #if HAVE(MMAP)