Index: runtime/vm/service.cc |
diff --git a/runtime/vm/service.cc b/runtime/vm/service.cc |
index d651f53e6bb66856fec27823b58d2541694dff8f..3cbf8fc24a693d5eaa0a8d2dc16e6c80589293b5 100644 |
--- a/runtime/vm/service.cc |
+++ b/runtime/vm/service.cc |
@@ -3762,8 +3762,7 @@ class ServiceIsolateVisitor : public IsolateVisitor { |
virtual ~ServiceIsolateVisitor() {} |
void VisitIsolate(Isolate* isolate) { |
- if ((isolate != Dart::vm_isolate()) && |
- !ServiceIsolate::IsServiceIsolateDescendant(isolate)) { |
+ if (!IsVMInternalIsolate(isolate)) { |
jsarr_->AddValue(isolate); |
} |
} |