| Index: Source/platform/heap/HeapTest.cpp
|
| diff --git a/Source/platform/heap/HeapTest.cpp b/Source/platform/heap/HeapTest.cpp
|
| index 04981c4e09010a2155d59e48b30e1e945ab84ec6..4bb5e03aa63156035d4fe710d6216a7609a973b8 100644
|
| --- a/Source/platform/heap/HeapTest.cpp
|
| +++ b/Source/platform/heap/HeapTest.cpp
|
| @@ -523,6 +523,8 @@ protected:
|
| atomicIncrement(&m_gcCount);
|
| }
|
|
|
| + // Taking snapshot shouldn't have any bad side effect.
|
| + Heap::collectGarbage(ThreadState::NoHeapPointersOnStack, ThreadState::TakeSnapshot, Heap::ForcedGC);
|
| Heap::collectGarbage(ThreadState::NoHeapPointersOnStack, ThreadState::GCWithSweep, Heap::ForcedGC);
|
| EXPECT_EQ(wrapper->value(), 0x0bbac0de);
|
| EXPECT_EQ((*globalPersistent)->value(), 0x0ed0cabb);
|
| @@ -567,6 +569,8 @@ private:
|
| atomicIncrement(&m_gcCount);
|
| }
|
|
|
| + // Taking snapshot shouldn't have any bad side effect.
|
| + Heap::collectGarbage(ThreadState::NoHeapPointersOnStack, ThreadState::TakeSnapshot, Heap::ForcedGC);
|
| Heap::collectGarbage(ThreadState::NoHeapPointersOnStack, ThreadState::GCWithSweep, Heap::ForcedGC);
|
| EXPECT_TRUE(weakMap->isEmpty());
|
| EXPECT_TRUE(weakMap2.isEmpty());
|
| @@ -3635,7 +3639,7 @@ TEST(HeapTest, CheckAndMarkPointer)
|
| // This is a low-level test where we call checkAndMarkPointer. This method
|
| // causes the object start bitmap to be computed which requires the heap
|
| // to be in a consistent state (e.g. the free allocation area must be put
|
| - // into a free list header). However when we call makeConsistentForSweeping it
|
| + // into a free list header). However when we call makeConsistentForGC it
|
| // also clears out the freelists so we have to rebuild those before trying
|
| // to allocate anything again. We do this by forcing a GC after doing the
|
| // checkAndMarkPointer tests.
|
|
|