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

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

Issue 767233003: Perform smaller marking steps incrementally in idle notification. (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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 // That is the maximum idle time we will have during frame rendering. 118 // That is the maximum idle time we will have during frame rendering.
119 static const size_t kMaxFrameRenderingIdleTime = 16; 119 static const size_t kMaxFrameRenderingIdleTime = 16;
120 120
121 // If we haven't recorded any scavenger events yet, we use a conservative 121 // If we haven't recorded any scavenger events yet, we use a conservative
122 // lower bound for the scavenger speed. 122 // lower bound for the scavenger speed.
123 static const size_t kInitialConservativeScavengeSpeed = 100 * KB; 123 static const size_t kInitialConservativeScavengeSpeed = 100 * KB;
124 124
125 // If contexts are disposed at a higher rate a full gc is triggered. 125 // If contexts are disposed at a higher rate a full gc is triggered.
126 static const double kHighContextDisposalRate; 126 static const double kHighContextDisposalRate;
127 127
128 // Incremental marking step time.
129 static const size_t kIncrementalMarkingStepTimeInMs = 1;
130
128 class HeapState { 131 class HeapState {
129 public: 132 public:
130 void Print(); 133 void Print();
131 134
132 int contexts_disposed; 135 int contexts_disposed;
133 double contexts_disposal_rate; 136 double contexts_disposal_rate;
134 size_t size_of_objects; 137 size_t size_of_objects;
135 bool incremental_marking_stopped; 138 bool incremental_marking_stopped;
136 bool can_start_incremental_marking; 139 bool can_start_incremental_marking;
137 bool sweeping_in_progress; 140 bool sweeping_in_progress;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 int mark_compacts_since_idle_round_started_; 203 int mark_compacts_since_idle_round_started_;
201 int scavenges_since_last_idle_round_; 204 int scavenges_since_last_idle_round_;
202 205
203 DISALLOW_COPY_AND_ASSIGN(GCIdleTimeHandler); 206 DISALLOW_COPY_AND_ASSIGN(GCIdleTimeHandler);
204 }; 207 };
205 208
206 } // namespace internal 209 } // namespace internal
207 } // namespace v8 210 } // namespace v8
208 211
209 #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