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 7c74dcb3dac79d1068e2f26ca3ed7716a5227cdc..b9a99b23407a88e8c10aa10a2458e2d6e8f1fddf 100644 |
--- a/src/heap/gc-idle-time-handler.cc |
+++ b/src/heap/gc-idle-time-handler.cc |
@@ -110,7 +110,8 @@ bool GCIdleTimeHandler::ScavangeMayHappenSoon( |
// that this currently may trigger a full garbage collection. |
GCIdleTimeAction GCIdleTimeHandler::Compute(size_t idle_time_in_ms, |
HeapState heap_state) { |
- if (ScavangeMayHappenSoon( |
+ if (idle_time_in_ms <= kMaxFrameRenderingIdleTime && |
+ ScavangeMayHappenSoon( |
heap_state.available_new_space_memory, |
heap_state.new_space_allocation_throughput_in_bytes_per_ms) && |
idle_time_in_ms >= |