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

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

Issue 2151253003: Do not reload isolates if we are in the process of shutting down the VM (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | runtime/vm/isolate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_ISOLATE_H_ 5 #ifndef VM_ISOLATE_H_
6 #define VM_ISOLATE_H_ 6 #define VM_ISOLATE_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "vm/atomic.h" 10 #include "vm/atomic.h"
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 bool asserts() const { return asserts_; } 624 bool asserts() const { return asserts_; }
625 bool error_on_bad_type() const { return error_on_bad_type_; } 625 bool error_on_bad_type() const { return error_on_bad_type_; }
626 bool error_on_bad_override() const { return error_on_bad_override_; } 626 bool error_on_bad_override() const { return error_on_bad_override_; }
627 #endif // defined(PRODUCT) 627 #endif // defined(PRODUCT)
628 628
629 static void KillAllIsolates(LibMsgId msg_id); 629 static void KillAllIsolates(LibMsgId msg_id);
630 static void KillIfExists(Isolate* isolate, LibMsgId msg_id); 630 static void KillIfExists(Isolate* isolate, LibMsgId msg_id);
631 631
632 static void DisableIsolateCreation(); 632 static void DisableIsolateCreation();
633 static void EnableIsolateCreation(); 633 static void EnableIsolateCreation();
634 static bool IsolateCreationEnabled();
634 635
635 void StopBackgroundCompiler(); 636 void StopBackgroundCompiler();
636 637
637 intptr_t reload_every_n_stack_overflow_checks() const { 638 intptr_t reload_every_n_stack_overflow_checks() const {
638 return reload_every_n_stack_overflow_checks_; 639 return reload_every_n_stack_overflow_checks_;
639 } 640 }
640 641
641 void MaybeIncreaseReloadEveryNStackOverflowChecks(); 642 void MaybeIncreaseReloadEveryNStackOverflowChecks();
642 643
643 private: 644 private:
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
989 intptr_t* spawn_count_; 990 intptr_t* spawn_count_;
990 991
991 Dart_IsolateFlags isolate_flags_; 992 Dart_IsolateFlags isolate_flags_;
992 bool paused_; 993 bool paused_;
993 bool errors_are_fatal_; 994 bool errors_are_fatal_;
994 }; 995 };
995 996
996 } // namespace dart 997 } // namespace dart
997 998
998 #endif // VM_ISOLATE_H_ 999 #endif // VM_ISOLATE_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698