From b8c667729cd3abc02a367ee587e2723e1392def1 Mon Sep 17 00:00:00 2001 From: jochen Date: Mon, 1 Dec 2014 01:15:03 -0800 Subject: [PATCH] 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} --- src/heap/gc-idle-time-handler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/heap/gc-idle-time-handler.cc b/src/heap/gc-idle-time-handler.cc index 9bc7078..92fb553 100644 --- a/src/heap/gc-idle-time-handler.cc +++ b/src/heap/gc-idle-time-handler.cc @@ -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(idle_time_in_ms) <= 0) { if (heap_state.incremental_marking_stopped) { if (ShouldDoContextDisposalMarkCompact( heap_state.contexts_disposed, -- 2.7.4