Chromium Code Reviews| Index: src/heap.h |
| diff --git a/src/heap.h b/src/heap.h |
| index b24b0b3608344ffba6177e42df6edf3c02f217e2..269aa884e670fb5682e5eed6ab825733cfd93a67 100644 |
| --- a/src/heap.h |
| +++ b/src/heap.h |
| @@ -1546,7 +1546,11 @@ class Heap { |
| // Predicate that governs global pre-tenuring decisions based on observed |
| // promotion rates of previous collections. |
| inline bool ShouldGloballyPretenure() { |
| - return new_space_high_promotion_mode_active_; |
| + return FLAG_pretenuring && new_space_high_promotion_mode_active_; |
| + } |
| + |
| + void SetNewSpaceHighPromotionModeActive(bool mode) { |
|
Michael Starzinger
2013/05/23 08:05:28
nit: Can we add a short one-liner comment here say
Hannes Payer (out of office)
2013/05/23 08:54:52
Done.
|
| + new_space_high_promotion_mode_active_ = mode; |
| } |
| inline PretenureFlag GetPretenureMode() { |