Commit b8c66772 authored by jochen's avatar jochen Committed by Commit bot

Make sure we have non-zero idle time even after rounding to size_t

BUG=v8:3728
R=machenbach@chromium.org
LOG=n

Review URL: https://codereview.chromium.org/764263002

Cr-Commit-Position: refs/heads/master@{#25578}
parent 9e02e987
......@@ -191,7 +191,7 @@ bool GCIdleTimeHandler::ShouldDoFinalIncrementalMarkCompact(
// that this currently may trigger a full garbage collection.
GCIdleTimeAction GCIdleTimeHandler::Compute(double idle_time_in_ms,
HeapState heap_state) {
if (idle_time_in_ms <= 0.0) {
if (static_cast<int>(idle_time_in_ms) <= 0) {
if (heap_state.incremental_marking_stopped) {
if (ShouldDoContextDisposalMarkCompact(
heap_state.contexts_disposed,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment