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

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

Issue 1180203003: Dampen old generation allocation limit after scavenge if allocation rate is low. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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/heap.cc » ('j') | src/heap/heap.cc » ('J')
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 #ifndef V8_HEAP_HEAP_H_ 5 #ifndef V8_HEAP_HEAP_H_
6 #define V8_HEAP_HEAP_H_ 6 #define V8_HEAP_HEAP_H_
7 7
8 #include <cmath> 8 #include <cmath>
9 #include <map> 9 #include <map>
10 10
(...skipping 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after
1169 static double HeapGrowingFactor(double gc_speed, double mutator_speed); 1169 static double HeapGrowingFactor(double gc_speed, double mutator_speed);
1170 1170
1171 // Calculates the allocation limit based on a given growing factor and a 1171 // Calculates the allocation limit based on a given growing factor and a
1172 // given old generation size. 1172 // given old generation size.
1173 intptr_t CalculateOldGenerationAllocationLimit(double factor, 1173 intptr_t CalculateOldGenerationAllocationLimit(double factor,
1174 intptr_t old_gen_size); 1174 intptr_t old_gen_size);
1175 1175
1176 // Sets the allocation limit to trigger the next full garbage collection. 1176 // Sets the allocation limit to trigger the next full garbage collection.
1177 void SetOldGenerationAllocationLimit(intptr_t old_gen_size, double gc_speed, 1177 void SetOldGenerationAllocationLimit(intptr_t old_gen_size, double gc_speed,
1178 double mutator_speed); 1178 double mutator_speed);
1179 // Decreases the allocation limit if the the allocation rate is low.
Hannes Payer (out of office) 2015/06/16 22:29:22 This function does not depend on low allocation ra
ulan 2015/06/17 08:47:45 Done.
1180 void DampenOldGenerationAllocationLimit(intptr_t old_gen_size,
1181 double gc_speed,
1182 double mutator_speed);
1179 1183
1180 // Indicates whether inline bump-pointer allocation has been disabled. 1184 // Indicates whether inline bump-pointer allocation has been disabled.
1181 bool inline_allocation_disabled() { return inline_allocation_disabled_; } 1185 bool inline_allocation_disabled() { return inline_allocation_disabled_; }
1182 1186
1183 // Switch whether inline bump-pointer allocation should be used. 1187 // Switch whether inline bump-pointer allocation should be used.
1184 void EnableInlineAllocation(); 1188 void EnableInlineAllocation();
1185 void DisableInlineAllocation(); 1189 void DisableInlineAllocation();
1186 1190
1187 // Implements the corresponding V8 API function. 1191 // Implements the corresponding V8 API function.
1188 bool IdleNotification(double deadline_in_seconds); 1192 bool IdleNotification(double deadline_in_seconds);
(...skipping 1637 matching lines...) Expand 10 before | Expand all | Expand 10 after
2826 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 2830 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
2827 2831
2828 private: 2832 private:
2829 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2833 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2830 }; 2834 };
2831 #endif // DEBUG 2835 #endif // DEBUG
2832 } 2836 }
2833 } // namespace v8::internal 2837 } // namespace v8::internal
2834 2838
2835 #endif // V8_HEAP_HEAP_H_ 2839 #endif // V8_HEAP_HEAP_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap/heap.cc » ('j') | src/heap/heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698