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

Unified Diff: third_party/WebKit/Source/platform/heap/GCInfo.cpp

Issue 1609943003: Make platform/heap to use USING_FAST_MALLOC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed compile error Created 4 years, 11 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
Index: third_party/WebKit/Source/platform/heap/GCInfo.cpp
diff --git a/third_party/WebKit/Source/platform/heap/GCInfo.cpp b/third_party/WebKit/Source/platform/heap/GCInfo.cpp
index d97508d27b00c17442cc780e66716618fb0c85ee..2fb5d195ac02d25e804fa739756196a763af62f8 100644
--- a/third_party/WebKit/Source/platform/heap/GCInfo.cpp
+++ b/third_party/WebKit/Source/platform/heap/GCInfo.cpp
@@ -49,7 +49,7 @@ void GCInfoTable::resize()
size_t newSize = s_gcInfoTableSize ? 2 * s_gcInfoTableSize : initialSize;
ASSERT(newSize < GCInfoTable::maxIndex);
- s_gcInfoTable = reinterpret_cast<GCInfo const**>(realloc(s_gcInfoTable, newSize * sizeof(GCInfo)));
+ s_gcInfoTable = reinterpret_cast<GCInfo const**>(WTF::Partitions::fastRealloc(s_gcInfoTable, newSize * sizeof(GCInfo), "GCInfo"));
ASSERT(s_gcInfoTable);
memset(reinterpret_cast<uint8_t*>(s_gcInfoTable) + s_gcInfoTableSize * sizeof(GCInfo), gcInfoZapValue, (newSize - s_gcInfoTableSize) * sizeof(GCInfo));
s_gcInfoTableSize = newSize;
@@ -63,7 +63,7 @@ void GCInfoTable::init()
void GCInfoTable::shutdown()
{
- free(s_gcInfoTable);
+ WTF::Partitions::fastFree(s_gcInfoTable);
s_gcInfoTable = nullptr;
}

Powered by Google App Engine
This is Rietveld 408576698