| Index: test/cctest/test-mark-compact.cc
|
| diff --git a/test/cctest/test-mark-compact.cc b/test/cctest/test-mark-compact.cc
|
| index bea0d340633f0fba6cf53358276791320dd35c30..3c16f2abbc28e214b3056bd542e084442836e9a5 100644
|
| --- a/test/cctest/test-mark-compact.cc
|
| +++ b/test/cctest/test-mark-compact.cc
|
| @@ -92,7 +92,8 @@ TEST(Promotion) {
|
| CHECK(heap->InSpace(*array, NEW_SPACE));
|
|
|
| // Call mark compact GC, so array becomes an old object.
|
| - heap->CollectGarbage(OLD_POINTER_SPACE);
|
| + heap->CollectAllGarbage(Heap::kAbortIncrementalMarkingMask);
|
| + heap->CollectAllGarbage(Heap::kAbortIncrementalMarkingMask);
|
|
|
| // Array now sits in the old space
|
| CHECK(heap->InSpace(*array, OLD_POINTER_SPACE));
|
|
|