| Index: src/heap.cc
|
| diff --git a/src/heap.cc b/src/heap.cc
|
| index 98844f05e91deb508b77e4e554dbea4bc6394802..d46dc044821202326832f267e22b044f84bc41d6 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 {
|
| @@ -5959,10 +5956,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_));
|
|
|