Index: src/heap.h |
diff --git a/src/heap.h b/src/heap.h |
index b6cc2261ea7917483f657df18f45f0ab8ae2302b..ff32354b6fffdb0163244a59f2fadede160949be 100644 |
--- a/src/heap.h |
+++ b/src/heap.h |
@@ -1176,6 +1176,11 @@ class Heap { |
(PromotedSpaceSize() + PromotedExternalMemorySize()); |
} |
+ inline void LowerOldGenLimits(int bytes) { |
+ old_gen_promotion_limit_ -= bytes; |
+ old_gen_allocation_limit_ -= bytes; |
+ } |
+ |
// Can be called when the embedding application is idle. |
bool IdleNotification(); |