Index: test/cctest/test-weakmaps.cc |
diff --git a/test/cctest/test-weakmaps.cc b/test/cctest/test-weakmaps.cc |
index 9e995560634aee31669715426a4270cc1343ec5e..6cab081b8bb8d949e01eff96ed7efd8358cecfb0 100644 |
--- a/test/cctest/test-weakmaps.cc |
+++ b/test/cctest/test-weakmaps.cc |
@@ -96,7 +96,7 @@ |
CHECK_EQ(2, ObjectHashTable::cast(weakmap->table())->NumberOfElements()); |
// Force a full GC. |
- heap->CollectAllGarbage("Weakness", Heap::kNoGCFlags); |
+ heap->CollectAllGarbage(false); |
CHECK_EQ(0, NumberOfWeakCalls); |
CHECK_EQ(2, ObjectHashTable::cast(weakmap->table())->NumberOfElements()); |
CHECK_EQ( |
@@ -115,12 +115,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 maps. |
- heap->CollectAllGarbage("Weakness", Heap::kNoGCFlags); |
+ heap->CollectAllGarbage(false); |
CHECK_EQ(1, NumberOfWeakCalls); |
CHECK_EQ(2, ObjectHashTable::cast(weakmap->table())->NumberOfElements()); |
CHECK_EQ( |
0, ObjectHashTable::cast(weakmap->table())->NumberOfDeletedElements()); |
- heap->CollectAllGarbage("Weakness", Heap::kNoGCFlags); |
+ heap->CollectAllGarbage(false); |
CHECK_EQ(1, NumberOfWeakCalls); |
CHECK_EQ(0, ObjectHashTable::cast(weakmap->table())->NumberOfElements()); |
CHECK_EQ(2, |
@@ -158,7 +158,7 @@ |
CHECK_EQ(32, ObjectHashTable::cast(weakmap->table())->NumberOfElements()); |
CHECK_EQ( |
0, ObjectHashTable::cast(weakmap->table())->NumberOfDeletedElements()); |
- heap->CollectAllGarbage("Shrinking", Heap::kNoGCFlags); |
+ heap->CollectAllGarbage(false); |
CHECK_EQ(0, ObjectHashTable::cast(weakmap->table())->NumberOfElements()); |
CHECK_EQ( |
32, ObjectHashTable::cast(weakmap->table())->NumberOfDeletedElements()); |