| Index: src/heap/incremental-marking-job.cc
|
| diff --git a/src/heap/incremental-marking-job.cc b/src/heap/incremental-marking-job.cc
|
| index 3ccbec23d6c6369f239a8941fdec48ff9e7f707f..fe14dd04c68bb09bb31e3e1d80741e180829ff38 100644
|
| --- a/src/heap/incremental-marking-job.cc
|
| +++ b/src/heap/incremental-marking-job.cc
|
| @@ -71,14 +71,12 @@ void IncrementalMarkingJob::ScheduleDelayedTask(Heap* heap) {
|
| IncrementalMarkingJob::IdleTask::Progress IncrementalMarkingJob::IdleTask::Step(
|
| Heap* heap, double deadline_in_ms) {
|
| IncrementalMarking* incremental_marking = heap->incremental_marking();
|
| - MarkCompactCollector* mark_compact_collector = heap->mark_compact_collector();
|
| if (incremental_marking->IsStopped()) {
|
| return kDone;
|
| }
|
| - if (mark_compact_collector->sweeping_in_progress()) {
|
| - if (mark_compact_collector->IsSweepingCompleted()) {
|
| - mark_compact_collector->EnsureSweepingCompleted();
|
| - }
|
| + if (incremental_marking->IsSweeping()) {
|
| + incremental_marking->FinalizeSweeping();
|
| + // TODO(hpayer): We can continue here if enough idle time is left.
|
| return kMoreWork;
|
| }
|
| const double remaining_idle_time_in_ms =
|
|
|