| Index: src/heap.cc
|
| ===================================================================
|
| --- src/heap.cc (revision 12528)
|
| +++ src/heap.cc (working copy)
|
| @@ -119,6 +119,7 @@
|
| debug_utils_(NULL),
|
| #endif // DEBUG
|
| new_space_high_promotion_mode_active_(false),
|
| + flush_eagerly_(false),
|
| old_gen_promotion_limit_(kMinimumPromotionLimit),
|
| old_gen_allocation_limit_(kMinimumAllocationLimit),
|
| old_gen_limit_factor_(1),
|
| @@ -546,7 +547,8 @@
|
| mark_compact_collector()->SetFlags(kMakeHeapIterableMask |
|
| kReduceMemoryFootprintMask);
|
| isolate_->compilation_cache()->Clear();
|
| - const int kMaxNumberOfAttempts = 7;
|
| + const int kMaxNumberOfAttempts = 2;
|
| + FlushEagerly flush_eagerly_scope;
|
| for (int attempt = 0; attempt < kMaxNumberOfAttempts; attempt++) {
|
| if (!CollectGarbage(OLD_POINTER_SPACE, MARK_COMPACTOR, gc_reason, NULL)) {
|
| break;
|
|
|