Index: test/cctest/test-object-observe.cc |
diff --git a/test/cctest/test-object-observe.cc b/test/cctest/test-object-observe.cc |
index 8851d888933947143bd66f3850dd683a37d40de8..a3c5ce6a32edd7395c08a87c471d217005cf48ac 100644 |
--- a/test/cctest/test-object-observe.cc |
+++ b/test/cctest/test-object-observe.cc |
@@ -683,7 +683,7 @@ static void CheckSurvivingGlobalObjectsCount(int expected) { |
// the first garbage collection but some of the maps have already |
// been marked at that point. Therefore some of the maps are not |
// collected until the second garbage collection. |
- CcTest::heap()->CollectAllGarbage(i::Heap::kNoGCFlags); |
+ CcTest::heap()->CollectAllGarbage(i::Heap::kReduceMemoryFootprintMask); |
CcTest::heap()->CollectAllGarbage(i::Heap::kMakeHeapIterableMask); |
int count = GetGlobalObjectsCount(); |
#ifdef DEBUG |