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

Unified Diff: runtime/vm/isolate.h

Issue 1371193005: VM restart + shutdown fixes (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: more code review Created 5 years, 2 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/debugger.cc ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/isolate.h
diff --git a/runtime/vm/isolate.h b/runtime/vm/isolate.h
index 2472acc80922ff6f0d99bf7e9540e800e742689a..00406ed9352f4e2c4e79bb485b8c10e27c76b847 100644
--- a/runtime/vm/isolate.h
+++ b/runtime/vm/isolate.h
@@ -130,6 +130,7 @@ class Isolate : public BaseIsolate {
// Internal message ids.
kInterruptMsg = 10, // Break in the debugger.
kInternalKillMsg = 11, // Like kill, but does not run exit listeners, etc.
+ kVMRestartMsg = 12, // Sent to isolates when vm is restarting.
};
// The different Isolate API message priorities for ping and kill messages.
enum LibMsgPriority {
@@ -766,8 +767,8 @@ class Isolate : public BaseIsolate {
bool is_service_isolate() const { return is_service_isolate_; }
- static void KillAllIsolates();
- static void KillIfExists(Isolate* isolate);
+ static void KillAllIsolates(LibMsgId msg_id);
+ static void KillIfExists(Isolate* isolate, LibMsgId msg_id);
static void DisableIsolateCreation();
static void EnableIsolateCreation();
@@ -784,7 +785,7 @@ class Isolate : public BaseIsolate {
bool is_vm_isolate = false);
// The isolates_list_monitor_ should be held when calling Kill().
- void KillLocked();
+ void KillLocked(LibMsgId msg_id);
void LowLevelShutdown();
void Shutdown();
« no previous file with comments | « runtime/vm/debugger.cc ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698