Chromium Code Reviews| Index: Source/platform/heap/Heap.cpp |
| diff --git a/Source/platform/heap/Heap.cpp b/Source/platform/heap/Heap.cpp |
| index f884380da0f12dc1140b5d4df392d7550c287e8d..ef7031487e0a64ee135043e2474b89c788d5bda8 100644 |
| --- a/Source/platform/heap/Heap.cpp |
| +++ b/Source/platform/heap/Heap.cpp |
| @@ -1982,6 +1982,10 @@ void Heap::init() |
| s_allocatedObjectSize = 0; |
| s_allocatedSpace = 0; |
| s_markedObjectSize = 0; |
| + |
| + const size_t tableSize = gcInfoIndexMax * sizeof(GCInfo); |
| + s_gcInfoTable = reinterpret_cast<GCInfo const**>(new uint8_t[tableSize]); |
|
haraken
2015/01/06 08:08:04
Can we add 'delete' code to doShutdown()?
sof
2015/01/06 08:19:18
Certainly, added.
|
| + memset(s_gcInfoTable, 0, tableSize); |
| } |
| void Heap::shutdown() |