Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: src/heap/heap.cc

Issue 1277943003: Version 4.4.63.30 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@4.4
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/heap/gc-idle-time-handler.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api.h" 8 #include "src/api.h"
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/base/once.h" 10 #include "src/base/once.h"
(...skipping 5389 matching lines...) Expand 10 before | Expand all | Expand 10 after
5400 factor = max_factor - 5400 factor = max_factor -
5401 (freed_global_handles - kMinHandles) * (max_factor - min_factor) / 5401 (freed_global_handles - kMinHandles) * (max_factor - min_factor) /
5402 (kMaxHandles - kMinHandles); 5402 (kMaxHandles - kMinHandles);
5403 } 5403 }
5404 5404
5405 if (FLAG_stress_compaction || 5405 if (FLAG_stress_compaction ||
5406 mark_compact_collector()->reduce_memory_footprint_) { 5406 mark_compact_collector()->reduce_memory_footprint_) {
5407 factor = min_factor; 5407 factor = min_factor;
5408 } 5408 }
5409 5409
5410 const double kConservativeHeapGrowingFactor = 1.3;
5411 if (gc_idle_time_handler_.ShouldGrowHeapSlowly()) {
5412 factor = Min(factor, kConservativeHeapGrowingFactor);
5413 }
5414
5415
5410 idle_factor = Min(factor, idle_max_factor); 5416 idle_factor = Min(factor, idle_max_factor);
5411 5417
5412 old_generation_allocation_limit_ = 5418 old_generation_allocation_limit_ =
5413 CalculateOldGenerationAllocationLimit(factor, old_gen_size); 5419 CalculateOldGenerationAllocationLimit(factor, old_gen_size);
5414 idle_old_generation_allocation_limit_ = 5420 idle_old_generation_allocation_limit_ =
5415 CalculateOldGenerationAllocationLimit(idle_factor, old_gen_size); 5421 CalculateOldGenerationAllocationLimit(idle_factor, old_gen_size);
5416 5422
5417 if (FLAG_trace_gc_verbose) { 5423 if (FLAG_trace_gc_verbose) {
5418 PrintIsolate( 5424 PrintIsolate(
5419 isolate_, 5425 isolate_,
(...skipping 1173 matching lines...) Expand 10 before | Expand all | Expand 10 after
6593 } 6599 }
6594 delete list; 6600 delete list;
6595 } else { 6601 } else {
6596 prev = list; 6602 prev = list;
6597 } 6603 }
6598 list = next; 6604 list = next;
6599 } 6605 }
6600 } 6606 }
6601 } 6607 }
6602 } // namespace v8::internal 6608 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap/gc-idle-time-handler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698