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

Unified Diff: runtime/vm/service.cc

Issue 181503006: Add flag to pin and service command to release isolates (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 | « runtime/vm/isolate.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/service.cc
diff --git a/runtime/vm/service.cc b/runtime/vm/service.cc
index cedc6ba01ad71779bd1d9168c6682a635d5463e4..afc31be2c2550e26e05d32107b94cd64f826fb00 100644
--- a/runtime/vm/service.cc
+++ b/runtime/vm/service.cc
@@ -1091,6 +1091,13 @@ static bool HandleAllocationProfile(Isolate* isolate, JSONStream* js) {
}
+static bool HandleUnpin(Isolate* isolate, JSONStream* js) {
+ // TODO(johnmccutchan): What do I respond with??
+ isolate->ClosePinPort();
+ return true;
+}
+
+
static IsolateMessageHandlerEntry isolate_handlers[] = {
{ "_echo", HandleIsolateEcho },
{ "", HandleIsolate },
@@ -1104,6 +1111,7 @@ static IsolateMessageHandlerEntry isolate_handlers[] = {
{ "objecthistogram", HandleObjectHistogram},
{ "objects", HandleObjects },
{ "profile", HandleProfile },
+ { "unpin", HandleUnpin },
{ "scripts", HandleScripts },
{ "stacktrace", HandleStackTrace },
};
« no previous file with comments | « runtime/vm/isolate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698