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

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

Issue 1269583002: Fix idle notification for background tab. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: deflake TestIdleNotification by ensuring that sweeping is completed. 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 | « 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 size_t final_incremental_mark_compact_speed_in_bytes_per_ms); 191 size_t final_incremental_mark_compact_speed_in_bytes_per_ms);
192 192
193 static bool ShouldDoOverApproximateWeakClosure(size_t idle_time_in_ms); 193 static bool ShouldDoOverApproximateWeakClosure(size_t idle_time_in_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);
199 199
200 private: 200 private:
201 GCIdleTimeAction NothingOrDone(); 201 GCIdleTimeAction NothingOrDone(double idle_time_in_ms);
202 202
203 // Idle notifications with no progress. 203 // Idle notifications with no progress.
204 int idle_times_which_made_no_progress_; 204 int idle_times_which_made_no_progress_;
205 205
206 DISALLOW_COPY_AND_ASSIGN(GCIdleTimeHandler); 206 DISALLOW_COPY_AND_ASSIGN(GCIdleTimeHandler);
207 }; 207 };
208 208
209 } // namespace internal 209 } // namespace internal
210 } // namespace v8 210 } // namespace v8
211 211
212 #endif // V8_HEAP_GC_IDLE_TIME_HANDLER_H_ 212 #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