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

Unified Diff: runtime/vm/isolate.h

Issue 1754813004: Add thread safe constant canonicalization. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Move allocation 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 9d6aa2845ac27f1c1d8de64feba25b6ceba69164..63a8cc860295518ed5965d84ceb45fd430db7efb 100644
--- a/runtime/vm/isolate.h
+++ b/runtime/vm/isolate.h
@@ -322,6 +322,9 @@ class Isolate : public BaseIsolate {
Mutex* type_canonicalization_mutex() const {
return type_canonicalization_mutex_;
}
+ Mutex* constant_canonicalization_mutex() const {
+ return constant_canonicalization_mutex_;
+ }
Debugger* debugger() const {
if (!FLAG_support_debugger) {
@@ -758,6 +761,7 @@ class Isolate : public BaseIsolate {
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.
+ Mutex* constant_canonicalization_mutex_; // Protects const 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