Index: src/heap/gc-tracer.cc |
diff --git a/src/heap/gc-tracer.cc b/src/heap/gc-tracer.cc |
index d8d582cb0713a906dc568e6d6e5ccb4a036c2c09..695a259884804b2bcea347e164b43ec1f3517a48 100644 |
--- a/src/heap/gc-tracer.cc |
+++ b/src/heap/gc-tracer.cc |
@@ -276,7 +276,7 @@ void GCTracer::Stop(GarbageCollector collector) { |
recorded_incremental_mark_compacts_.Push( |
MakeBytesAndDuration(current_.start_object_size, duration)); |
combined_mark_compact_speed_cache_ = 0.0; |
- for (int i = 0; i <= Scope::NUMBER_OF_INCREMENTAL_SCOPES; i++) { |
+ for (int i = 0; i < Scope::NUMBER_OF_INCREMENTAL_SCOPES; i++) { |
incremental_marking_scopes_[i].ResetCurrentCycle(); |
} |
} else { |
@@ -285,7 +285,7 @@ void GCTracer::Stop(GarbageCollector collector) { |
recorded_mark_compacts_.Push( |
MakeBytesAndDuration(current_.start_object_size, duration)); |
combined_mark_compact_speed_cache_ = 0.0; |
- for (int i = 0; i <= Scope::NUMBER_OF_INCREMENTAL_SCOPES; i++) { |
+ for (int i = 0; i < Scope::NUMBER_OF_INCREMENTAL_SCOPES; i++) { |
incremental_marking_scopes_[i].ResetCurrentCycle(); |
} |
} |