Title: [153455] trunk/Source/WTF
Revision
153455
Author
[email protected]
Date
2013-07-29 20:33:57 -0700 (Mon, 29 Jul 2013)

Log Message

<rdar://problem/14528244> Tons of FastMalloc leaks reported by leaks of objects that have already been deallocated

Reviewed by Sam Weinig.

* wtf/FastMalloc.cpp:
(WTF::TCMalloc_Central_FreeList::enumerateFreeObjects): Mark objects in the transfer cache as being free.

Modified Paths

Diff

Modified: trunk/Source/WTF/ChangeLog (153454 => 153455)


--- trunk/Source/WTF/ChangeLog	2013-07-30 01:15:18 UTC (rev 153454)
+++ trunk/Source/WTF/ChangeLog	2013-07-30 03:33:57 UTC (rev 153455)
@@ -1,3 +1,12 @@
+2013-07-29  Mark Rowe  <[email protected]>
+
+        <rdar://problem/14528244> Tons of FastMalloc leaks reported by leaks of objects that have already been deallocated
+
+        Reviewed by Sam Weinig.
+
+        * wtf/FastMalloc.cpp:
+        (WTF::TCMalloc_Central_FreeList::enumerateFreeObjects): Mark objects in the transfer cache as being free.
+
 2013-07-29  Zan Dobersek  <[email protected]>
 
         Reintroduce convenience CheckedInt*, CheckedUint* types

Modified: trunk/Source/WTF/wtf/FastMalloc.cpp (153454 => 153455)


--- trunk/Source/WTF/wtf/FastMalloc.cpp	2013-07-30 01:15:18 UTC (rev 153454)
+++ trunk/Source/WTF/wtf/FastMalloc.cpp	2013-07-30 03:33:57 UTC (rev 153455)
@@ -1364,6 +1364,11 @@
         finder.visit(nextObject.value());
       }
     }
+
+    for (int slot = 0; slot < used_slots_; ++slot) {
+      for (HardenedSLL entry = tc_slots_[slot].head; entry; entry.setValue(reader.nextEntryInHardenedLinkedList(reinterpret_cast<void**>(entry.value()), entropy_)))
+        finder.visit(entry.value());
+    }
   }
 #endif
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to