| Index: test/cctest/test-api.cc
|
| diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
|
| index 484ce9f7201d4c5909a705280e70ebd9d7af1784..a3ce4462075512e6b1f46d532e83b7d45eb284a4 100644
|
| --- a/test/cctest/test-api.cc
|
| +++ b/test/cctest/test-api.cc
|
| @@ -20571,7 +20571,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()));
|
| }
|
|
|