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

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

Issue 1034403002: Allow more scavenges in idle notification by increasing the new space limit distance. (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 | 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 // idle round. 119 // idle round.
120 static const int kMaxMarkCompactsInIdleRound; 120 static const int kMaxMarkCompactsInIdleRound;
121 121
122 // Number of scavenges that will trigger start of new idle round. 122 // Number of scavenges that will trigger start of new idle round.
123 static const int kIdleScavengeThreshold; 123 static const int kIdleScavengeThreshold;
124 124
125 // This is the maximum scheduled idle time. Note that it can be more than 125 // This is the maximum scheduled idle time. Note that it can be more than
126 // 16 ms when there is currently no rendering going on. 126 // 16 ms when there is currently no rendering going on.
127 static const size_t kMaxScheduledIdleTime = 50; 127 static const size_t kMaxScheduledIdleTime = 50;
128 128
129 // We conservatively assume that in the next kTimeUntilNextIdleEvent ms
130 // no idle notification happens.
131 static const size_t kTimeUntilNextIdleEvent = 100;
132
129 // If we haven't recorded any scavenger events yet, we use a conservative 133 // If we haven't recorded any scavenger events yet, we use a conservative
130 // lower bound for the scavenger speed. 134 // lower bound for the scavenger speed.
131 static const size_t kInitialConservativeScavengeSpeed = 100 * KB; 135 static const size_t kInitialConservativeScavengeSpeed = 100 * KB;
132 136
133 // If contexts are disposed at a higher rate a full gc is triggered. 137 // If contexts are disposed at a higher rate a full gc is triggered.
134 static const double kHighContextDisposalRate; 138 static const double kHighContextDisposalRate;
135 139
136 // Incremental marking step time. 140 // Incremental marking step time.
137 static const size_t kIncrementalMarkingStepTimeInMs = 1; 141 static const size_t kIncrementalMarkingStepTimeInMs = 1;
138 142
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 int mark_compacts_since_idle_round_started_; 219 int mark_compacts_since_idle_round_started_;
216 int scavenges_since_last_idle_round_; 220 int scavenges_since_last_idle_round_;
217 221
218 DISALLOW_COPY_AND_ASSIGN(GCIdleTimeHandler); 222 DISALLOW_COPY_AND_ASSIGN(GCIdleTimeHandler);
219 }; 223 };
220 224
221 } // namespace internal 225 } // namespace internal
222 } // namespace v8 226 } // namespace v8
223 227
224 #endif // V8_HEAP_GC_IDLE_TIME_HANDLER_H_ 228 #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