Commit 33ffcc8f authored by mlippautz's avatar mlippautz Committed by Commit bot

[heap] GCTracer: Fix UB when iterating incremental scopes

BUG=chromium:639818
R=ulan@chromium.org

Review-Url: https://codereview.chromium.org/2288693002
Cr-Commit-Position: refs/heads/master@{#38971}
parent 285e1e15
......@@ -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();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment