Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index 8c9c8e98fb530548a17e021d863a75fa7d153263..4855c82eeaa4e055d6e1479f0d62f65a19fbb10b 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -1305,6 +1305,13 @@ |
int start_new_space_size = Heap::new_space()->SizeAsInt(); |
+ if (IsHighSurvivalRate()) { |
+ // We speed up the incremental marker if it is running so that it |
+ // does not fall behind the rate of promotion, which would cause a |
+ // constantly growing old space. |
+ incremental_marking()->NotifyOfHighPromotionRate(); |
+ } |
+ |
{ |
Heap::PretenuringScope pretenuring_scope(this); |