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

Unified Diff: runtime/vm/isolate.h

Issue 1747073002: Make type canonicalization thread safe (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Factor out lookup code 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | 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 e1ee975d95bbc8976d7fb0af6cf056d8d5543d0e..6afb16bbd1a04c2ab3b654eecdaa40e73ee8a269 100644
--- a/runtime/vm/isolate.h
+++ b/runtime/vm/isolate.h
@@ -319,6 +319,9 @@ class Isolate : public BaseIsolate {
Mutex* mutex() const { return mutex_; }
Mutex* symbols_mutex() const { return symbols_mutex_; }
+ Mutex* type_canonicalization_mutex() const {
+ return type_canonicalization_mutex_;
+ }
Debugger* debugger() const {
if (!FLAG_support_debugger) {
@@ -752,8 +755,9 @@ class Isolate : public BaseIsolate {
bool has_compiled_code_; // Can check that no compilation occured.
Random random_;
Simulator* simulator_;
- Mutex* mutex_; // protects stack_limit_, saved_stack_limit_, compiler stats.
- Mutex* symbols_mutex_; // Protects concurrent access to teh symbol table.
+ Mutex* mutex_; // Protects stack_limit_, saved_stack_limit_, compiler stats.
+ Mutex* symbols_mutex_; // Protects concurrent access to the symbol table.
+ Mutex* type_canonicalization_mutex_; // Protects type canonicalization.
uword saved_stack_limit_;
uword deferred_interrupts_mask_;
uword deferred_interrupts_;
« 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