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

Side by Side Diff: src/heap/gc-idle-time-handler.h

Issue 754363008: Restart idle round on context disposal. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years 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 | src/heap/gc-idle-time-handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #ifndef V8_HEAP_GC_IDLE_TIME_HANDLER_H_ 5 #ifndef V8_HEAP_GC_IDLE_TIME_HANDLER_H_
6 #define V8_HEAP_GC_IDLE_TIME_HANDLER_H_ 6 #define V8_HEAP_GC_IDLE_TIME_HANDLER_H_
7 7
8 #include "src/globals.h" 8 #include "src/globals.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 static size_t EstimateMarkCompactTime( 178 static size_t EstimateMarkCompactTime(
179 size_t size_of_objects, size_t mark_compact_speed_in_bytes_per_ms); 179 size_t size_of_objects, size_t mark_compact_speed_in_bytes_per_ms);
180 180
181 static size_t EstimateFinalIncrementalMarkCompactTime( 181 static size_t EstimateFinalIncrementalMarkCompactTime(
182 size_t size_of_objects, size_t mark_compact_speed_in_bytes_per_ms); 182 size_t size_of_objects, size_t mark_compact_speed_in_bytes_per_ms);
183 183
184 static bool ShouldDoMarkCompact(size_t idle_time_in_ms, 184 static bool ShouldDoMarkCompact(size_t idle_time_in_ms,
185 size_t size_of_objects, 185 size_t size_of_objects,
186 size_t mark_compact_speed_in_bytes_per_ms); 186 size_t mark_compact_speed_in_bytes_per_ms);
187 187
188 static bool ShouldDoContextDisposalMarkCompact(bool context_disposed, 188 static bool ShouldDoContextDisposalMarkCompact(int context_disposed,
189 double contexts_disposal_rate); 189 double contexts_disposal_rate);
190 190
191 static bool ShouldDoFinalIncrementalMarkCompact( 191 static bool ShouldDoFinalIncrementalMarkCompact(
192 size_t idle_time_in_ms, size_t size_of_objects, 192 size_t idle_time_in_ms, size_t size_of_objects,
193 size_t final_incremental_mark_compact_speed_in_bytes_per_ms); 193 size_t final_incremental_mark_compact_speed_in_bytes_per_ms);
194 194
195 static bool ShouldDoScavenge( 195 static bool ShouldDoScavenge(
196 size_t idle_time_in_ms, size_t new_space_size, size_t used_new_space_size, 196 size_t idle_time_in_ms, size_t new_space_size, size_t used_new_space_size,
197 size_t scavenger_speed_in_bytes_per_ms, 197 size_t scavenger_speed_in_bytes_per_ms,
198 size_t new_space_allocation_throughput_in_bytes_per_ms); 198 size_t new_space_allocation_throughput_in_bytes_per_ms);
(...skipping 11 matching lines...) Expand all
210 int mark_compacts_since_idle_round_started_; 210 int mark_compacts_since_idle_round_started_;
211 int scavenges_since_last_idle_round_; 211 int scavenges_since_last_idle_round_;
212 212
213 DISALLOW_COPY_AND_ASSIGN(GCIdleTimeHandler); 213 DISALLOW_COPY_AND_ASSIGN(GCIdleTimeHandler);
214 }; 214 };
215 215
216 } // namespace internal 216 } // namespace internal
217 } // namespace v8 217 } // namespace v8
218 218
219 #endif // V8_HEAP_GC_IDLE_TIME_HANDLER_H_ 219 #endif // V8_HEAP_GC_IDLE_TIME_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap/gc-idle-time-handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698