Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(667)

Unified Diff: runtime/lib/vmservice.cc

Issue 2690323003: Hide kernel isolate from isolate list; do not register it either (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/vmservice.cc
diff --git a/runtime/lib/vmservice.cc b/runtime/lib/vmservice.cc
index 9d83c13b9d8e421a7bb7b734f77843d561c7e655..e1df5a1db71949f95d004e25a8ca8833702c4f58 100644
--- a/runtime/lib/vmservice.cc
+++ b/runtime/lib/vmservice.cc
@@ -16,6 +16,7 @@
#include "vm/service_event.h"
#include "vm/service_isolate.h"
#include "vm/symbols.h"
+#include "vm/kernel_isolate.h"
namespace dart {
@@ -57,8 +58,13 @@ class RegisterRunningIsolatesVisitor : public IsolateVisitor {
virtual void VisitIsolate(Isolate* isolate) {
ASSERT(ServiceIsolate::IsServiceIsolate(Isolate::Current()));
- if (IsVMInternalIsolate(isolate)) {
- // We do not register the service (and descendants) or the vm-isolate.
+ bool is_kernel_isolate = false;
+#ifndef DART_PRECOMPILED_RUNTIME
+ is_kernel_isolate = KernelIsolate::IsKernelIsolate(isolate);
+#endif
+ if (IsVMInternalIsolate(isolate) || is_kernel_isolate) {
Vyacheslav Egorov (Google) 2017/02/14 13:02:25 Maybe this should just move this check into the Is
+ // We do not register the service (and descendants), the vm-isolate, or
+ // the kernel isolate.
return;
}
// Setup arguments for call.
« no previous file with comments | « no previous file | runtime/vm/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698