Title: [179855] trunk/Source/WTF
Revision
179855
Author
[email protected]
Date
2015-02-09 16:12:39 -0800 (Mon, 09 Feb 2015)

Log Message

REGRESSION: tryFastCalloc is no longer "try"
https://bugs.webkit.org/show_bug.cgi?id=141406

Reviewed by Darin Adler.

This causes crashes on some WebKit regression test bots.

* wtf/FastMalloc.cpp: (WTF::tryFastCalloc): Fix what looks like a copy/paste mistake.

Modified Paths

Diff

Modified: trunk/Source/WTF/ChangeLog (179854 => 179855)


--- trunk/Source/WTF/ChangeLog	2015-02-09 23:58:18 UTC (rev 179854)
+++ trunk/Source/WTF/ChangeLog	2015-02-10 00:12:39 UTC (rev 179855)
@@ -1,3 +1,14 @@
+2015-02-09  Alexey Proskuryakov  <[email protected]>
+
+        REGRESSION: tryFastCalloc is no longer "try"
+        https://bugs.webkit.org/show_bug.cgi?id=141406
+
+        Reviewed by Darin Adler.
+
+        This causes crashes on some WebKit regression test bots.
+
+        * wtf/FastMalloc.cpp: (WTF::tryFastCalloc): Fix what looks like a copy/paste mistake.
+
 2015-02-07  Csaba Osztrogonác  <[email protected]>
 
         [ARM] GC sometimes stuck in an infinite loop if parallel GC is enabled

Modified: trunk/Source/WTF/wtf/FastMalloc.cpp (179854 => 179855)


--- trunk/Source/WTF/wtf/FastMalloc.cpp	2015-02-09 23:58:18 UTC (rev 179854)
+++ trunk/Source/WTF/wtf/FastMalloc.cpp	2015-02-10 00:12:39 UTC (rev 179855)
@@ -323,7 +323,7 @@
     
 TryMallocReturnValue tryFastCalloc(size_t numElements, size_t elementSize)
 {
-    return fastCalloc(numElements, elementSize);
+    return tryFastZeroedMalloc(numElements * elementSize);
 }
     
 void releaseFastMallocFreeMemoryForThisThread()
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to