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

Side by Side Diff: runtime/vm/service_isolate.h

Issue 1177153005: Enables clean VM shutdown. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Kill isolates from the service isolate Created 5 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_SERVICE_ISOLATE_H_ 5 #ifndef VM_SERVICE_ISOLATE_H_
6 #define VM_SERVICE_ISOLATE_H_ 6 #define VM_SERVICE_ISOLATE_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 9
10 #include "vm/allocation.h" 10 #include "vm/allocation.h"
(...skipping 30 matching lines...) Expand all
41 static void FinishedInitializing(); 41 static void FinishedInitializing();
42 static void MaybeInjectVMServiceLibrary(Isolate* isolate); 42 static void MaybeInjectVMServiceLibrary(Isolate* isolate);
43 static Dart_IsolateCreateCallback create_callback() { 43 static Dart_IsolateCreateCallback create_callback() {
44 return create_callback_; 44 return create_callback_;
45 } 45 }
46 46
47 static Dart_Handle GetSource(const char* name); 47 static Dart_Handle GetSource(const char* name);
48 static Dart_Handle LibraryTagHandler(Dart_LibraryTag tag, Dart_Handle library, 48 static Dart_Handle LibraryTagHandler(Dart_LibraryTag tag, Dart_Handle library,
49 Dart_Handle url); 49 Dart_Handle url);
50 50
51 static void KillAllIsolates();
52
51 static Dart_IsolateCreateCallback create_callback_; 53 static Dart_IsolateCreateCallback create_callback_;
52 static uint8_t* exit_message_; 54 static uint8_t* exit_message_;
53 static intptr_t exit_message_length_; 55 static intptr_t exit_message_length_;
54 static Monitor* monitor_; 56 static Monitor* monitor_;
55 static bool initializing_; 57 static bool initializing_;
56 static bool shutting_down_; 58 static bool shutting_down_;
57 static Isolate* isolate_; 59 static Isolate* isolate_;
58 static Dart_Port port_; 60 static Dart_Port port_;
59 static Dart_Port load_port_; 61 static Dart_Port load_port_;
60 static Dart_Port origin_; 62 static Dart_Port origin_;
61 63
62 friend class Dart; 64 friend class Dart;
63 friend class RunServiceTask; 65 friend class RunServiceTask;
64 friend class ServiceIsolateNatives; 66 friend class ServiceIsolateNatives;
65 }; 67 };
66 68
67 } // namespace dart 69 } // namespace dart
68 70
69 #endif // VM_SERVICE_ISOLATE_H_ 71 #endif // VM_SERVICE_ISOLATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698