Add mode to reduce memory usage in idle notification.
authorulan <ulan@chromium.org>
Thu, 7 May 2015 14:41:53 +0000 (07:41 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 7 May 2015 14:41:54 +0000 (14:41 +0000)
commitae6a0b807574d4349be9c45428960ac7ecd3679a
treedbcf3e86e8adda677fb4d770fce8ae34f1017aac
parent010c515d0fb78e06803cb0293aefe58f755ef646
Add mode to reduce memory usage in idle notification.

While the mutator is active, the idle time handler optimizes for latency by doing only incremental steps and scavenges.

When the mutator becomes inactive, the idle time handler forces few incremental GCs to reclaim memory and then stops until mutator is active again.

BUG=460090
LOG=N

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

Cr-Commit-Position: refs/heads/master@{#28300}
src/heap/gc-idle-time-handler.cc
src/heap/gc-idle-time-handler.h
src/heap/heap.cc
test/cctest/test-heap.cc
test/unittests/heap/gc-idle-time-handler-unittest.cc