| Index: test/cctest/test-heap.cc
|
| diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc
|
| index d46d59a9128553f96d0c709cd22cd8c5c237d9e8..0e6776cbe95724b4ad94494766c2028a9e47ab6f 100644
|
| --- a/test/cctest/test-heap.cc
|
| +++ b/test/cctest/test-heap.cc
|
| @@ -2341,6 +2341,8 @@ TEST(IdleNotificationFinishMarking) {
|
| CHECK(!marking->IsIdleMarkingDelayCounterLimitReached());
|
| }
|
|
|
| + marking->SetWeakClosureWasOverApproximatedForTesting(true);
|
| +
|
| // The next idle notification has to finish incremental marking.
|
| const int kLongIdleTime = 1000000;
|
| CcTest::isolate()->IdleNotification(kLongIdleTime);
|
| @@ -4065,7 +4067,8 @@ TEST(IncrementalMarkingStepMakesBigProgressWithLargeObjects) {
|
| if (marking->IsStopped()) marking->Start();
|
| // This big step should be sufficient to mark the whole array.
|
| marking->Step(100 * MB, IncrementalMarking::NO_GC_VIA_STACK_GUARD);
|
| - DCHECK(marking->IsComplete());
|
| + DCHECK(marking->IsComplete() ||
|
| + marking->IsReadyToOverApproximateWeakClosure());
|
| }
|
|
|
|
|
|
|