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

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

Issue 1717803002: Add a SafepointMutexLocker class so that it is possible to have scopes inside the MutexLocker which… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: self-code-review Created 4 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 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 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 MessageHandler* message_handler() const { return message_handler_; } 311 MessageHandler* message_handler() const { return message_handler_; }
312 void set_message_handler(MessageHandler* value) { message_handler_ = value; } 312 void set_message_handler(MessageHandler* value) { message_handler_ = value; }
313 313
314 bool is_runnable() const { return is_runnable_; } 314 bool is_runnable() const { return is_runnable_; }
315 void set_is_runnable(bool value) { is_runnable_ = value; } 315 void set_is_runnable(bool value) { is_runnable_ = value; }
316 316
317 IsolateSpawnState* spawn_state() const { return spawn_state_; } 317 IsolateSpawnState* spawn_state() const { return spawn_state_; }
318 void set_spawn_state(IsolateSpawnState* value) { spawn_state_ = value; } 318 void set_spawn_state(IsolateSpawnState* value) { spawn_state_ = value; }
319 319
320 Mutex* mutex() const { return mutex_; } 320 Mutex* mutex() const { return mutex_; }
321 Mutex* symbols_mutex() const { return symbols_mutex_; }
321 322
322 Debugger* debugger() const { 323 Debugger* debugger() const {
323 if (!FLAG_support_debugger) { 324 if (!FLAG_support_debugger) {
324 return NULL; 325 return NULL;
325 } 326 }
326 ASSERT(debugger_ != NULL); 327 ASSERT(debugger_ != NULL);
327 return debugger_; 328 return debugger_;
328 } 329 }
329 330
330 void set_single_step(bool value) { single_step_ = value; } 331 void set_single_step(bool value) { single_step_ = value; }
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
772 Dart_LibraryTagHandler library_tag_handler_; 773 Dart_LibraryTagHandler library_tag_handler_;
773 ApiState* api_state_; 774 ApiState* api_state_;
774 Debugger* debugger_; 775 Debugger* debugger_;
775 bool resume_request_; 776 bool resume_request_;
776 int64_t last_resume_timestamp_; 777 int64_t last_resume_timestamp_;
777 bool has_compiled_code_; // Can check that no compilation occured. 778 bool has_compiled_code_; // Can check that no compilation occured.
778 Flags flags_; 779 Flags flags_;
779 Random random_; 780 Random random_;
780 Simulator* simulator_; 781 Simulator* simulator_;
781 Mutex* mutex_; // protects stack_limit_, saved_stack_limit_, compiler stats. 782 Mutex* mutex_; // protects stack_limit_, saved_stack_limit_, compiler stats.
783 Mutex* symbols_mutex_; // Protects concurrent access to teh symbol table.
srdjan 2016/02/19 21:38:05 s/teh/the/
782 uword saved_stack_limit_; 784 uword saved_stack_limit_;
783 uword deferred_interrupts_mask_; 785 uword deferred_interrupts_mask_;
784 uword deferred_interrupts_; 786 uword deferred_interrupts_;
785 uword stack_overflow_flags_; 787 uword stack_overflow_flags_;
786 int32_t stack_overflow_count_; 788 int32_t stack_overflow_count_;
787 MessageHandler* message_handler_; 789 MessageHandler* message_handler_;
788 IsolateSpawnState* spawn_state_; 790 IsolateSpawnState* spawn_state_;
789 bool is_runnable_; 791 bool is_runnable_;
790 Dart_GcPrologueCallback gc_prologue_callback_; 792 Dart_GcPrologueCallback gc_prologue_callback_;
791 Dart_GcEpilogueCallback gc_epilogue_callback_; 793 Dart_GcEpilogueCallback gc_epilogue_callback_;
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
1037 intptr_t* spawn_count_; 1039 intptr_t* spawn_count_;
1038 1040
1039 Isolate::Flags isolate_flags_; 1041 Isolate::Flags isolate_flags_;
1040 bool paused_; 1042 bool paused_;
1041 bool errors_are_fatal_; 1043 bool errors_are_fatal_;
1042 }; 1044 };
1043 1045
1044 } // namespace dart 1046 } // namespace dart
1045 1047
1046 #endif // VM_ISOLATE_H_ 1048 #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