| Index: test/cctest/test-heap.cc
|
| diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc
|
| index f94fe53ca6c5771a19182693e50a7a7fbef891c3..7cdae6b36c3a7e99d7ce6797179cb3c067675a00 100644
|
| --- a/test/cctest/test-heap.cc
|
| +++ b/test/cctest/test-heap.cc
|
| @@ -50,7 +50,11 @@ static void InitializeVM() {
|
|
|
| // Go through all incremental marking steps in one swoop.
|
| static void SimulateIncrementalMarking() {
|
| + MarkCompactCollector* collector = HEAP->mark_compact_collector();
|
| IncrementalMarking* marking = HEAP->incremental_marking();
|
| + if (collector->IsConcurrentSweepingInProgress()) {
|
| + collector->WaitUntilSweepingCompleted();
|
| + }
|
| CHECK(marking->IsMarking() || marking->IsStopped());
|
| if (marking->IsStopped()) {
|
| marking->Start();
|
|
|