| 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;
|
| }
|
|
|
|
|