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/heap.h

Issue 1153763003: Idle old generation limit is used when allocation rate is low. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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') | no next file with comments »
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 2117 matching lines...) Expand 10 before | Expand all | Expand 10 after
2128 void SelectScavengingVisitorsTable(); 2128 void SelectScavengingVisitorsTable();
2129 2129
2130 bool HasLowAllocationRate(size_t allocaion_rate); 2130 bool HasLowAllocationRate(size_t allocaion_rate);
2131 2131
2132 void ReduceNewSpaceSize(size_t allocaion_rate); 2132 void ReduceNewSpaceSize(size_t allocaion_rate);
2133 2133
2134 bool TryFinalizeIdleIncrementalMarking( 2134 bool TryFinalizeIdleIncrementalMarking(
2135 double idle_time_in_ms, size_t size_of_objects, 2135 double idle_time_in_ms, size_t size_of_objects,
2136 size_t mark_compact_speed_in_bytes_per_ms); 2136 size_t mark_compact_speed_in_bytes_per_ms);
2137 2137
2138 GCIdleTimeHandler::HeapState ComputeHeapState(bool reduce_memory); 2138 GCIdleTimeHandler::HeapState ComputeHeapState();
2139 2139
2140 bool PerformIdleTimeAction(GCIdleTimeAction action, 2140 bool PerformIdleTimeAction(GCIdleTimeAction action,
2141 GCIdleTimeHandler::HeapState heap_state, 2141 GCIdleTimeHandler::HeapState heap_state,
2142 double deadline_in_ms, 2142 double deadline_in_ms,
2143 bool is_long_idle_notification); 2143 bool is_long_idle_notification);
2144 2144
2145 void IdleNotificationEpilogue(GCIdleTimeAction action, 2145 void IdleNotificationEpilogue(GCIdleTimeAction action,
2146 GCIdleTimeHandler::HeapState heap_state, 2146 GCIdleTimeHandler::HeapState heap_state,
2147 double start_ms, double deadline_in_ms, 2147 double start_ms, double deadline_in_ms,
2148 bool is_long_idle_notification); 2148 bool is_long_idle_notification);
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after
2696 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 2696 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
2697 2697
2698 private: 2698 private:
2699 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2699 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2700 }; 2700 };
2701 #endif // DEBUG 2701 #endif // DEBUG
2702 } 2702 }
2703 } // namespace v8::internal 2703 } // namespace v8::internal
2704 2704
2705 #endif // V8_HEAP_HEAP_H_ 2705 #endif // V8_HEAP_HEAP_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698