Index: test/cctest/test-weaksets.cc |
diff --git a/test/cctest/test-weaksets.cc b/test/cctest/test-weaksets.cc |
index 1abf1a69a71ed31e7a3771a1ff5e9bc3f88b220b..b536a67ba91eea4829b4e527c1fc80390ffac2fb 100644 |
--- a/test/cctest/test-weaksets.cc |
+++ b/test/cctest/test-weaksets.cc |
@@ -95,7 +95,7 @@ TEST(WeakSet_Weakness) { |
CHECK_EQ(1, ObjectHashTable::cast(weakset->table())->NumberOfElements()); |
// Force a full GC. |
- heap->CollectAllGarbage(false); |
+ heap->CollectAllGarbage("WeakSet_Weakness", Heap::kNoGCFlags); |
CHECK_EQ(0, NumberOfWeakCalls); |
CHECK_EQ(1, ObjectHashTable::cast(weakset->table())->NumberOfElements()); |
CHECK_EQ( |
@@ -114,12 +114,12 @@ TEST(WeakSet_Weakness) { |
// 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(false); |
+ heap->CollectAllGarbage("WeakSet_Weakness", Heap::kNoGCFlags); |
CHECK_EQ(1, NumberOfWeakCalls); |
CHECK_EQ(1, ObjectHashTable::cast(weakset->table())->NumberOfElements()); |
CHECK_EQ( |
0, ObjectHashTable::cast(weakset->table())->NumberOfDeletedElements()); |
- heap->CollectAllGarbage(false); |
+ heap->CollectAllGarbage("WeakSet_Weakness", Heap::kNoGCFlags); |
CHECK_EQ(1, NumberOfWeakCalls); |
CHECK_EQ(0, ObjectHashTable::cast(weakset->table())->NumberOfElements()); |
CHECK_EQ( |
@@ -157,7 +157,7 @@ TEST(WeakSet_Shrinking) { |
CHECK_EQ(32, ObjectHashTable::cast(weakset->table())->NumberOfElements()); |
CHECK_EQ( |
0, ObjectHashTable::cast(weakset->table())->NumberOfDeletedElements()); |
- heap->CollectAllGarbage(false); |
+ heap->CollectAllGarbage("WeakSet_Shrinking", Heap::kNoGCFlags); |
CHECK_EQ(0, ObjectHashTable::cast(weakset->table())->NumberOfElements()); |
CHECK_EQ( |
32, ObjectHashTable::cast(weakset->table())->NumberOfDeletedElements()); |