| Index: src/heap/heap.cc
|
| diff --git a/src/heap/heap.cc b/src/heap/heap.cc
|
| index 2ac5146c46d0cf06c6f00f2bbea878a0015db66b..f2ca0800adb96ccfd52820066a77ee4dac699902 100644
|
| --- a/src/heap/heap.cc
|
| +++ b/src/heap/heap.cc
|
| @@ -4610,7 +4610,8 @@ bool Heap::IdleNotification(double deadline_in_seconds) {
|
| heap_state.incremental_marking_stopped = incremental_marking()->IsStopped();
|
| // TODO(ulan): Start incremental marking only for large heaps.
|
| heap_state.can_start_incremental_marking =
|
| - incremental_marking()->ShouldActivate() && FLAG_incremental_marking;
|
| + incremental_marking()->ShouldActivate() && FLAG_incremental_marking &&
|
| + !mark_compact_collector()->sweeping_in_progress();
|
| heap_state.sweeping_in_progress =
|
| mark_compact_collector()->sweeping_in_progress();
|
| heap_state.mark_compact_speed_in_bytes_per_ms =
|
|
|