Index: src/heap/gc-idle-time-handler.h |
diff --git a/src/heap/gc-idle-time-handler.h b/src/heap/gc-idle-time-handler.h |
index bc196ce93a181e15dce8817a651ec00a9bae42f3..0ee803423ac26fa5264b6c3a9ce623803e9b698e 100644 |
--- a/src/heap/gc-idle-time-handler.h |
+++ b/src/heap/gc-idle-time-handler.h |
@@ -83,7 +83,7 @@ class GCIdleTimeHandler { |
static const size_t kInitialConservativeMarkCompactSpeed = 2 * MB; |
// Maximum mark-compact time returned by EstimateMarkCompactTime. |
- static const size_t kMaxMarkCompactTimeInMs = 1000000; |
+ static const size_t kMaxMarkCompactTimeInMs; |
// Minimum time to finalize sweeping phase. The main thread may wait for |
// sweeper threads. |
@@ -95,14 +95,15 @@ class GCIdleTimeHandler { |
bool incremental_marking_stopped; |
bool can_start_incremental_marking; |
bool sweeping_in_progress; |
+ size_t mark_compact_speed_in_bytes_per_ms; |
+ size_t incremental_marking_speed_in_bytes_per_ms; |
}; |
GCIdleTimeHandler() |
: mark_compacts_since_idle_round_started_(0), |
scavenges_since_last_idle_round_(0) {} |
- GCIdleTimeAction Compute(size_t idle_time_in_ms, HeapState heap_state, |
- GCTracer* gc_tracer); |
+ GCIdleTimeAction Compute(size_t idle_time_in_ms, HeapState heap_state); |
void NotifyIdleMarkCompact() { |
if (mark_compacts_since_idle_round_started_ < kMaxMarkCompactsInIdleRound) { |