[haiku-commits] r35507 - haiku/trunk/src/system/kernel

  • From: axeld@xxxxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 17 Feb 2010 16:40:02 +0100 (CET)

Author: axeld
Date: 2010-02-17 16:40:02 +0100 (Wed, 17 Feb 2010)
New Revision: 35507
Changeset: http://dev.haiku-os.org/changeset/35507/haiku

Modified:
   haiku/trunk/src/system/kernel/heap.cpp
Log:
* Fixed compilation with PARANOID_HEAP_VALIDATION turned on.


Modified: haiku/trunk/src/system/kernel/heap.cpp
===================================================================
--- haiku/trunk/src/system/kernel/heap.cpp      2010-02-17 15:35:28 UTC (rev 
35506)
+++ haiku/trunk/src/system/kernel/heap.cpp      2010-02-17 15:40:02 UTC (rev 
35507)
@@ -1375,7 +1375,8 @@
 
 #if KERNEL_HEAP_LEAK_CHECK
 static void
-heap_add_leak_check_info(addr_t address, size_t allocated, size_t size)
+heap_add_leak_check_info(heap_allocator *heap, addr_t address, size_t 
allocated,
+       size_t size)
 {
        heap_leak_check_info *info = (heap_leak_check_info *)(address + 
allocated
                - sizeof(heap_leak_check_info));
@@ -1404,7 +1405,7 @@
 
        addr_t address = firstPage->area->base + firstPage->index * 
heap->page_size;
 #if KERNEL_HEAP_LEAK_CHECK
-       heap_add_leak_check_info(address, pageCount * heap->page_size, size);
+       heap_add_leak_check_info(heap, address, pageCount * heap->page_size, 
size);
 #endif
        return (void *)address;
 }
@@ -1475,7 +1476,7 @@
 
 #if KERNEL_HEAP_LEAK_CHECK
        binLocker.Unlock();
-       heap_add_leak_check_info((addr_t)address, bin->element_size, size);
+       heap_add_leak_check_info(heap, (addr_t)address, bin->element_size, 
size);
 #endif
        return address;
 }


Other related posts:

  • » [haiku-commits] r35507 - haiku/trunk/src/system/kernel - axeld