Commit 16116190 authored by ulan's avatar ulan Committed by Commit bot

Fix sampling of V8.DetachedContextAgeInGC histogram.

BUG=

Review URL: https://codereview.chromium.org/938693002

Cr-Commit-Position: refs/heads/master@{#26719}
parent 7138634d
...@@ -2594,9 +2594,8 @@ void Isolate::CheckDetachedContextsAfterGC() { ...@@ -2594,9 +2594,8 @@ void Isolate::CheckDetachedContextsAfterGC() {
detached_contexts->set(new_length, Smi::FromInt(mark_sweeps + 1)); detached_contexts->set(new_length, Smi::FromInt(mark_sweeps + 1));
detached_contexts->set(new_length + 1, cell); detached_contexts->set(new_length + 1, cell);
new_length += 2; new_length += 2;
} else {
counters()->detached_context_age_in_gc()->AddSample(mark_sweeps);
} }
counters()->detached_context_age_in_gc()->AddSample(mark_sweeps + 1);
} }
if (FLAG_trace_detached_contexts) { if (FLAG_trace_detached_contexts) {
PrintF("%d detached contexts are collected out of %d\n", PrintF("%d detached contexts are collected out of %d\n",
......
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