Index: Source/platform/heap/Heap.cpp |
diff --git a/Source/platform/heap/Heap.cpp b/Source/platform/heap/Heap.cpp |
index 8782ccbf3cb2d1443903535692aa667e85abc194..01d82954d22964642466108e61b46867b232d9da 100644 |
--- a/Source/platform/heap/Heap.cpp |
+++ b/Source/platform/heap/Heap.cpp |
@@ -2004,9 +2004,7 @@ void Heap::init() |
s_allocatedSpace = 0; |
s_markedObjectSize = 0; |
- const size_t tableSize = gcInfoIndexMax * sizeof(GCInfo); |
- s_gcInfoTable = reinterpret_cast<GCInfo const**>(new uint8_t[tableSize]); |
- memset(s_gcInfoTable, 0, tableSize); |
+ GCInfoTable::init(); |
} |
void Heap::shutdown() |
@@ -2040,8 +2038,7 @@ void Heap::doShutdown() |
s_ephemeronStack = nullptr; |
delete s_regionTree; |
s_regionTree = nullptr; |
- delete[] s_gcInfoTable; |
- s_gcInfoTable = nullptr; |
+ GCInfoTable::shutdown(); |
ThreadState::shutdown(); |
ASSERT(Heap::allocatedSpace() == 0); |
} |