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

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

Issue 1093853002: Initialize idle old generation allocation limit in constructor. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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 | « no previous file | 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 raw_allocations_hash_(0), 94 raw_allocations_hash_(0),
95 dump_allocations_hash_countdown_(FLAG_dump_allocations_digest_at_alloc), 95 dump_allocations_hash_countdown_(FLAG_dump_allocations_digest_at_alloc),
96 ms_count_(0), 96 ms_count_(0),
97 gc_count_(0), 97 gc_count_(0),
98 remembered_unmapped_pages_index_(0), 98 remembered_unmapped_pages_index_(0),
99 unflattened_strings_length_(0), 99 unflattened_strings_length_(0),
100 #ifdef DEBUG 100 #ifdef DEBUG
101 allocation_timeout_(0), 101 allocation_timeout_(0),
102 #endif // DEBUG 102 #endif // DEBUG
103 old_generation_allocation_limit_(initial_old_generation_size_), 103 old_generation_allocation_limit_(initial_old_generation_size_),
104 idle_old_generation_allocation_limit_(
105 kMinimumOldGenerationAllocationLimit),
104 old_gen_exhausted_(false), 106 old_gen_exhausted_(false),
105 inline_allocation_disabled_(false), 107 inline_allocation_disabled_(false),
106 store_buffer_rebuilder_(store_buffer()), 108 store_buffer_rebuilder_(store_buffer()),
107 hidden_string_(NULL), 109 hidden_string_(NULL),
108 gc_safe_size_of_old_object_(NULL), 110 gc_safe_size_of_old_object_(NULL),
109 total_regexp_code_generated_(0), 111 total_regexp_code_generated_(0),
110 tracer_(this), 112 tracer_(this),
111 high_survival_rate_period_length_(0), 113 high_survival_rate_period_length_(0),
112 promoted_objects_size_(0), 114 promoted_objects_size_(0),
113 promotion_ratio_(0), 115 promotion_ratio_(0),
(...skipping 6289 matching lines...) Expand 10 before | Expand all | Expand 10 after
6403 static_cast<int>(object_sizes_last_time_[index])); 6405 static_cast<int>(object_sizes_last_time_[index]));
6404 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) 6406 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT)
6405 #undef ADJUST_LAST_TIME_OBJECT_COUNT 6407 #undef ADJUST_LAST_TIME_OBJECT_COUNT
6406 6408
6407 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); 6409 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_));
6408 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); 6410 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_));
6409 ClearObjectStats(); 6411 ClearObjectStats();
6410 } 6412 }
6411 } 6413 }
6412 } // namespace v8::internal 6414 } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698