| Index: Source/platform/heap/HeapTest.cpp
|
| diff --git a/Source/platform/heap/HeapTest.cpp b/Source/platform/heap/HeapTest.cpp
|
| index de59c0d73a0e12c5821ac22323575ea7d01fe473..ce73f24ff03760e8c9f08f34f51f19bf677399c7 100644
|
| --- a/Source/platform/heap/HeapTest.cpp
|
| +++ b/Source/platform/heap/HeapTest.cpp
|
| @@ -4244,13 +4244,9 @@ TEST(HeapTest, VectorDestructors)
|
|
|
| InlinedVectorObject::s_destructorCalls = 0;
|
| {
|
| - auto const heapObject = new InlinedVectorObjectWrapper();
|
| + Persistent<InlinedVectorObjectWrapper> vectorWrapper = new InlinedVectorObjectWrapper();
|
| Heap::collectGarbage(ThreadState::HeapPointersOnStack, ThreadState::GCWithSweep, Heap::ForcedGC);
|
| EXPECT_EQ(2, InlinedVectorObject::s_destructorCalls);
|
| - // Force compiler to keep |heapObject| variable on the stack
|
| - // while collectGarbage() is working.
|
| - // Otherwise GC would think that it's safe to collect the object.
|
| - EXPECT_TRUE(heapObject);
|
| }
|
| Heap::collectGarbage(ThreadState::NoHeapPointersOnStack, ThreadState::GCWithSweep, Heap::ForcedGC);
|
| EXPECT_LE(8, InlinedVectorObject::s_destructorCalls);
|
|
|