| Index: test/cctest/test-api.cc
|
| diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
|
| index d4fbb046bff4397fd75db55754cdecc9dd99075a..155a9e26b24c36b217ab3d1537b0480d5b16178a 100644
|
| --- a/test/cctest/test-api.cc
|
| +++ b/test/cctest/test-api.cc
|
| @@ -14122,7 +14122,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
|
| @@ -19182,7 +19182,7 @@ TEST(Regress528) {
|
| other_context->Enter();
|
| CompileRun(source_exception);
|
| other_context->Exit();
|
| - CcTest::heap()->CollectAllGarbage(i::Heap::kNoGCFlags);
|
| + CcTest::heap()->CollectAllGarbage(i::Heap::kReduceMemoryFootprintMask);
|
| if (GetGlobalObjectsCount() == 1) break;
|
| }
|
| CHECK_GE(2, gc_count);
|
|
|