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 8cce929b399d41a564a7d4a65d12504565198a1c..7c74dcb3dac79d1068e2f26ca3ed7716a5227cdc 100644 |
--- a/src/heap/gc-idle-time-handler.cc |
+++ b/src/heap/gc-idle-time-handler.cc |
@@ -126,6 +126,10 @@ GCIdleTimeAction GCIdleTimeHandler::Compute(size_t idle_time_in_ms, |
} |
} |
+ if (idle_time_in_ms == 0) { |
+ return GCIdleTimeAction::Nothing(); |
+ } |
+ |
if (heap_state.incremental_marking_stopped) { |
size_t estimated_time_in_ms = |
EstimateMarkCompactTime(heap_state.size_of_objects, |