| Index: test/cctest/test-api.cc
|
| diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
|
| index fe577457b0ec992d0edde5420ac7ee67c97e34f8..a5289efb7b00a15eeb9b2c606468a863c70eda82 100644
|
| --- a/test/cctest/test-api.cc
|
| +++ b/test/cctest/test-api.cc
|
| @@ -20317,7 +20317,8 @@ THREADED_TEST(Regress1516) {
|
| int elements = CountLiveMapsInMapCache(CcTest::i_isolate()->context());
|
| CHECK_LE(1, elements);
|
|
|
| - CcTest::heap()->CollectAllGarbage();
|
| + // We have to abort incremental marking here to abandon black pages.
|
| + CcTest::heap()->CollectAllGarbage(i::Heap::kAbortIncrementalMarkingMask);
|
|
|
| CHECK_GT(elements, CountLiveMapsInMapCache(CcTest::i_isolate()->context()));
|
| }
|
|
|