| Index: src/heap/gc-idle-time-handler.cc
|
| diff --git a/src/heap/gc-idle-time-handler.cc b/src/heap/gc-idle-time-handler.cc
|
| index 250fb12ca0be2c08c97327aed949ef2512357dae..5060bc90d1654bc484cc9399569b9335069e29c2 100644
|
| --- a/src/heap/gc-idle-time-handler.cc
|
| +++ b/src/heap/gc-idle-time-handler.cc
|
| @@ -253,9 +253,11 @@ GCIdleTimeAction GCIdleTimeHandler::Compute(double idle_time_in_ms,
|
| }
|
|
|
| // TODO(hpayer): Estimate finalize sweeping time.
|
| - if (heap_state.sweeping_in_progress &&
|
| - static_cast<size_t>(idle_time_in_ms) >= kMinTimeForFinalizeSweeping) {
|
| - return GCIdleTimeAction::FinalizeSweeping();
|
| + if (heap_state.sweeping_in_progress) {
|
| + if (static_cast<size_t>(idle_time_in_ms) >= kMinTimeForFinalizeSweeping) {
|
| + return GCIdleTimeAction::FinalizeSweeping();
|
| + }
|
| + return NothingOrDone();
|
| }
|
|
|
| if (heap_state.incremental_marking_stopped &&
|
|
|