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

Unified Diff: runtime/vm/atomic.h

Issue 1834763004: Track loading happening in parallel with background compilation and abort compilation if necessary. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: comments Created 4 years, 9 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/compiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/atomic.h
diff --git a/runtime/vm/atomic.h b/runtime/vm/atomic.h
index bd489d0de36aec88030f1bc5edd88715e33db446..fc6257ec7ef95354dec1cad327cf59d7e48782ae 100644
--- a/runtime/vm/atomic.h
+++ b/runtime/vm/atomic.h
@@ -53,6 +53,12 @@ class AtomicOperations : public AllStatic {
static uword LoadRelaxed(uword* ptr) {
return *static_cast<volatile uword*>(ptr);
}
+
+ // Performs a load of a word from 'ptr', but without any guarantees about
+ // memory order (i.e., no load barriers/fences).
+ static intptr_t LoadRelaxedIntPtr(intptr_t* ptr) {
+ return *static_cast<volatile intptr_t*>(ptr);
+ }
};
« no previous file with comments | « no previous file | runtime/vm/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698