Index: test/cctest/test-weaksets.cc |
diff --git a/test/cctest/test-weaksets.cc b/test/cctest/test-weaksets.cc |
index b536a67ba91eea4829b4e527c1fc80390ffac2fb..1abf1a69a71ed31e7a3771a1ff5e9bc3f88b220b 100644 |
--- a/test/cctest/test-weaksets.cc |
+++ b/test/cctest/test-weaksets.cc |
@@ -95,7 +95,7 @@ |
CHECK_EQ(1, ObjectHashTable::cast(weakset->table())->NumberOfElements()); |
// Force a full GC. |
- heap->CollectAllGarbage("WeakSet_Weakness", Heap::kNoGCFlags); |
+ heap->CollectAllGarbage(false); |
CHECK_EQ(0, NumberOfWeakCalls); |
CHECK_EQ(1, ObjectHashTable::cast(weakset->table())->NumberOfElements()); |
CHECK_EQ( |
@@ -114,12 +114,12 @@ |
// Force a full GC. |
// Perform two consecutive GCs because the first one will only clear |
// weak references whereas the second one will also clear weak sets. |
- heap->CollectAllGarbage("WeakSet_Weakness", Heap::kNoGCFlags); |
+ heap->CollectAllGarbage(false); |
CHECK_EQ(1, NumberOfWeakCalls); |
CHECK_EQ(1, ObjectHashTable::cast(weakset->table())->NumberOfElements()); |
CHECK_EQ( |
0, ObjectHashTable::cast(weakset->table())->NumberOfDeletedElements()); |
- heap->CollectAllGarbage("WeakSet_Weakness", Heap::kNoGCFlags); |
+ heap->CollectAllGarbage(false); |
CHECK_EQ(1, NumberOfWeakCalls); |
CHECK_EQ(0, ObjectHashTable::cast(weakset->table())->NumberOfElements()); |
CHECK_EQ( |
@@ -157,7 +157,7 @@ |
CHECK_EQ(32, ObjectHashTable::cast(weakset->table())->NumberOfElements()); |
CHECK_EQ( |
0, ObjectHashTable::cast(weakset->table())->NumberOfDeletedElements()); |
- heap->CollectAllGarbage("WeakSet_Shrinking", Heap::kNoGCFlags); |
+ heap->CollectAllGarbage(false); |
CHECK_EQ(0, ObjectHashTable::cast(weakset->table())->NumberOfElements()); |
CHECK_EQ( |
32, ObjectHashTable::cast(weakset->table())->NumberOfDeletedElements()); |