From bbca83c3988344e1461c8dde7ccfcf1af1461a60 Mon Sep 17 00:00:00 2001 From: ulan Date: Tue, 12 May 2015 10:25:04 -0700 Subject: [PATCH] Make transition to reduce memory mode more conservative in idle time handler. BUG=chromium:486005 LOG=NO Review URL: https://codereview.chromium.org/1131943004 Cr-Commit-Position: refs/heads/master@{#28378} --- src/heap/gc-idle-time-handler.h | 2 +- test/unittests/heap/gc-idle-time-handler-unittest.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/heap/gc-idle-time-handler.h b/src/heap/gc-idle-time-handler.h index ebb3b1c..3beee16 100644 --- a/src/heap/gc-idle-time-handler.h +++ b/src/heap/gc-idle-time-handler.h @@ -158,7 +158,7 @@ class GCIdleTimeHandler { // with time >= kMinLongIdleTime and without any mutator GC in between. static const int kMinLongIdleTime = kMaxFrameRenderingIdleTime + 1; static const int kLargeLongIdleTime = 900; - static const int kLongIdleNotificationsBeforeMutatorIsIdle = 20; + static const int kLongIdleNotificationsBeforeMutatorIsIdle = 600; class HeapState { diff --git a/test/unittests/heap/gc-idle-time-handler-unittest.cc b/test/unittests/heap/gc-idle-time-handler-unittest.cc index 67ae4e0..f421f00 100644 --- a/test/unittests/heap/gc-idle-time-handler-unittest.cc +++ b/test/unittests/heap/gc-idle-time-handler-unittest.cc @@ -94,7 +94,7 @@ class GCIdleTimeHandlerTest : public ::testing::Test { static const size_t kScavengeSpeed = 100 * KB; static const size_t kNewSpaceCapacity = 1 * MB; static const size_t kNewSpaceAllocationThroughput = 10 * KB; - static const int kMaxNotifications = 100; + static const int kMaxNotifications = 1000; private: GCIdleTimeHandler handler_; -- 2.7.4