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

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

Issue 1269743002: Take into account freed global handles for heap growing. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/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 1161 matching lines...) Expand 10 before | Expand all | Expand 10 after
1172 1172
1173 static double HeapGrowingFactor(double gc_speed, double mutator_speed); 1173 static double HeapGrowingFactor(double gc_speed, double mutator_speed);
1174 1174
1175 // Calculates the allocation limit based on a given growing factor and a 1175 // Calculates the allocation limit based on a given growing factor and a
1176 // given old generation size. 1176 // given old generation size.
1177 intptr_t CalculateOldGenerationAllocationLimit(double factor, 1177 intptr_t CalculateOldGenerationAllocationLimit(double factor,
1178 intptr_t old_gen_size); 1178 intptr_t old_gen_size);
1179 1179
1180 // Sets the allocation limit to trigger the next full garbage collection. 1180 // Sets the allocation limit to trigger the next full garbage collection.
1181 void SetOldGenerationAllocationLimit(intptr_t old_gen_size, double gc_speed, 1181 void SetOldGenerationAllocationLimit(intptr_t old_gen_size, double gc_speed,
1182 double mutator_speed); 1182 double mutator_speed,
1183 int freed_global_handles);
1183 1184
1184 // Decrease the allocation limit if the new limit based on the given 1185 // Decrease the allocation limit if the new limit based on the given
1185 // parameters is lower than the current limit. 1186 // parameters is lower than the current limit.
1186 void DampenOldGenerationAllocationLimit(intptr_t old_gen_size, 1187 void DampenOldGenerationAllocationLimit(intptr_t old_gen_size,
1187 double gc_speed, 1188 double gc_speed,
1188 double mutator_speed); 1189 double mutator_speed);
1189 1190
1190 // Indicates whether inline bump-pointer allocation has been disabled. 1191 // Indicates whether inline bump-pointer allocation has been disabled.
1191 bool inline_allocation_disabled() { return inline_allocation_disabled_; } 1192 bool inline_allocation_disabled() { return inline_allocation_disabled_; }
1192 1193
(...skipping 1668 matching lines...) Expand 10 before | Expand all | Expand 10 after
2861 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 2862 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
2862 2863
2863 private: 2864 private:
2864 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2865 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2865 }; 2866 };
2866 #endif // DEBUG 2867 #endif // DEBUG
2867 } 2868 }
2868 } // namespace v8::internal 2869 } // namespace v8::internal
2869 2870
2870 #endif // V8_HEAP_HEAP_H_ 2871 #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