Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2615)

Unified Diff: Source/wtf/FastMalloc.cpp

Issue 23604048: Get rid of fastMallocGoodSize() and replace it with something generic. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add missed WTF_EXPORT. Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/wtf/FastMalloc.h ('k') | Source/wtf/QuantizedAllocation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/FastMalloc.cpp
diff --git a/Source/wtf/FastMalloc.cpp b/Source/wtf/FastMalloc.cpp
index 791f4c44ef544957fbc8d645c05a91bca09c0f65..5250977c6702408773c211dcd3b8af72c951fde9 100644
--- a/Source/wtf/FastMalloc.cpp
+++ b/Source/wtf/FastMalloc.cpp
@@ -213,15 +213,6 @@ char* fastStrDup(const char* src)
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());
@@ -2466,13 +2457,6 @@ static inline TCMalloc_PageHeap* getPageHeap()
#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)
« no previous file with comments | « Source/wtf/FastMalloc.h ('k') | Source/wtf/QuantizedAllocation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698