Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index 35b201f2f1b53a23d59ac4f1ae87bcd1b44c877f..f7c2508020b52ad3564904ee048b53ec15d8e018 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -118,8 +118,7 @@ Heap::Heap() |
disallow_allocation_failure_(false), |
#endif // DEBUG |
new_space_high_promotion_mode_active_(false), |
- old_gen_promotion_limit_(kMinimumPromotionLimit), |
- old_gen_allocation_limit_(kMinimumAllocationLimit), |
+ old_generation_allocation_limit_(kMinimumOldGenerationAllocationLimit), |
size_of_old_gen_at_last_old_space_gc_(0), |
external_allocation_limit_(0), |
amount_of_external_allocated_memory_(0), |
@@ -282,7 +281,7 @@ GarbageCollector Heap::SelectGarbageCollector(AllocationSpace space, |
} |
// Is enough data promoted to justify a global GC? |
- if (OldGenerationPromotionLimitReached()) { |
+ if (OldGenerationAllocationLimitReached()) { |
isolate_->counters()->gc_compactor_caused_by_promoted_data()->Increment(); |
*reason = "promotion limit reached"; |
return MARK_COMPACTOR; |
@@ -916,10 +915,8 @@ bool Heap::PerformGarbageCollection(GarbageCollector collector, |
size_of_old_gen_at_last_old_space_gc_ = PromotedSpaceSizeOfObjects(); |
- old_gen_promotion_limit_ = |
- OldGenPromotionLimit(size_of_old_gen_at_last_old_space_gc_); |
- old_gen_allocation_limit_ = |
- OldGenAllocationLimit(size_of_old_gen_at_last_old_space_gc_); |
+ old_generation_allocation_limit_ = |
+ OldGenerationAllocationLimit(size_of_old_gen_at_last_old_space_gc_); |
old_gen_exhausted_ = false; |
} else { |
@@ -5875,10 +5872,8 @@ void Heap::ReportHeapStatistics(const char* title) { |
USE(title); |
PrintF(">>>>>> =============== %s (%d) =============== >>>>>>\n", |
title, gc_count_); |
- PrintF("old_gen_promotion_limit_ %" V8_PTR_PREFIX "d\n", |
- old_gen_promotion_limit_); |
- PrintF("old_gen_allocation_limit_ %" V8_PTR_PREFIX "d\n", |
- old_gen_allocation_limit_); |
+ PrintF("old_generation_allocation_limit_ %" V8_PTR_PREFIX "d\n", |
+ old_generation_allocation_limit_); |
PrintF("\n"); |
PrintF("Number of handles : %d\n", HandleScope::NumberOfHandles(isolate_)); |