Index: trunk/Source/wtf/FastMalloc.cpp |
=================================================================== |
--- trunk/Source/wtf/FastMalloc.cpp (revision 157524) |
+++ trunk/Source/wtf/FastMalloc.cpp (working copy) |
@@ -213,6 +213,15 @@ |
namespace WTF { |
+size_t fastMallocGoodSize(size_t bytes) |
+{ |
+#if OS(MACOSX) |
+ return malloc_good_size(bytes); |
+#else |
+ return bytes; |
+#endif |
+} |
+ |
void* fastMalloc(size_t n) |
{ |
ASSERT(!isForbidden()); |
@@ -2457,6 +2466,13 @@ |
#define pageheap getPageHeap() |
+size_t fastMallocGoodSize(size_t bytes) |
+{ |
+ if (!phinited) |
+ TCMalloc_ThreadCache::InitModule(); |
+ return AllocationSize(bytes); |
+} |
+ |
#if USE_BACKGROUND_THREAD_TO_SCAVENGE_MEMORY |
#if HAVE(DISPATCH_H) || OS(WIN) |