Index: runtime/lib/vmservice.cc |
diff --git a/runtime/lib/vmservice.cc b/runtime/lib/vmservice.cc |
index 6e39021bde3cb7cb290c3aaf653fcd7d724da3de..5b6af4f707ce598da661873e44ac8f1b94610d15 100644 |
--- a/runtime/lib/vmservice.cc |
+++ b/runtime/lib/vmservice.cc |
@@ -51,8 +51,7 @@ class RegisterRunningIsolatesVisitor : public IsolateVisitor { |
virtual void VisitIsolate(Isolate* isolate) { |
ASSERT(ServiceIsolate::IsServiceIsolate(Isolate::Current())); |
- if (ServiceIsolate::IsServiceIsolateDescendant(isolate) || |
- (isolate == Dart::vm_isolate())) { |
+ if (IsVMInternalIsolate(isolate)) { |
// We do not register the service (and descendants) or the vm-isolate. |
return; |
} |