| Index: runtime/vm/compiler_stats.cc
|
| diff --git a/runtime/vm/compiler_stats.cc b/runtime/vm/compiler_stats.cc
|
| index 647f70bf3cd4b6f8a303314e52e0c0169ade106d..1615b49cccb18e9ab206529f6c1516c2960db176 100644
|
| --- a/runtime/vm/compiler_stats.cc
|
| +++ b/runtime/vm/compiler_stats.cc
|
| @@ -123,9 +123,13 @@ void CompilerStats::Update() {
|
| // Traverse the heap and compute number of tokens in all
|
| // TokenStream objects.
|
| num_tokens_total = 0;
|
| - TokenStreamVisitor visitor(this);
|
| - isolate_->heap()->IterateObjects(&visitor);
|
| - Dart::vm_isolate()->heap()->IterateObjects(&visitor);
|
| +
|
| + {
|
| + HeapIterationScope iteration(Thread::Current());
|
| + TokenStreamVisitor visitor(this);
|
| + iteration.IterateObjects(&visitor);
|
| + iteration.IterateVMIsolateObjects(&visitor);
|
| + }
|
| }
|
|
|
| void CompilerStats::EnableBenchmark() {
|
|
|