Index: src/heap-inl.h |
diff --git a/src/heap-inl.h b/src/heap-inl.h |
index 0d1ad5ada99ab59f61b3034d571b95b38678ef18..8f7dd3bab8206275800e747567d538f2678a3305 100644 |
--- a/src/heap-inl.h |
+++ b/src/heap-inl.h |
@@ -35,6 +35,16 @@ |
namespace v8 { |
namespace internal { |
+void Heap::UpdateOldSpaceLimits() { |
+ int old_gen_size = PromotedSpaceSize(); |
+ old_gen_promotion_limit_ = |
+ old_gen_size + Max(kMinimumPromotionLimit, old_gen_size / 3); |
+ old_gen_allocation_limit_ = |
+ old_gen_size + Max(kMinimumAllocationLimit, old_gen_size / 2); |
+ old_gen_exhausted_ = false; |
+} |
+ |
+ |
int Heap::MaxObjectSizeInPagedSpace() { |
return Page::kMaxHeapObjectSize; |
} |
@@ -403,7 +413,7 @@ void Heap::SetLastScriptId(Object* last_script_id) { |
} \ |
if (!__object__->IsRetryAfterGC()) RETURN_EMPTY; \ |
Counters::gc_last_resort_from_handles.Increment(); \ |
- Heap::CollectAllGarbage(false); \ |
+ Heap::CollectAllAvailableGarbage(); \ |
{ \ |
AlwaysAllocateScope __scope__; \ |
__object__ = FUNCTION_CALL; \ |