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 92fb5530ef57acb1e5e8650a93ee914c1ed4b3f7..cbcdfa407f22e6d1cb72396e3d1685d48c8e0564 100644 |
--- a/src/heap/gc-idle-time-handler.cc |
+++ b/src/heap/gc-idle-time-handler.cc |
@@ -250,7 +250,7 @@ GCIdleTimeAction GCIdleTimeHandler::Compute(double idle_time_in_ms, |
return GCIdleTimeAction::Nothing(); |
} |
size_t step_size = EstimateMarkingStepSize( |
- static_cast<size_t>(idle_time_in_ms), |
+ static_cast<size_t>(kIncrementalMarkingStepTimeInMs), |
heap_state.incremental_marking_speed_in_bytes_per_ms); |
return GCIdleTimeAction::IncrementalMarking(step_size); |
} |