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

Unified Diff: src/platform-openbsd.cc

Issue 10539044: define ATOMICOPS_COMPILER_BARRIER in platform.h (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Created 8 years, 6 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 | « src/platform-linux.cc ('k') | src/platform-solaris.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform-openbsd.cc
diff --git a/src/platform-openbsd.cc b/src/platform-openbsd.cc
index ba33a8444e23760a2b47585cb82e5c750074a8fd..5318129562961a4261254ce545feacf88e563e89 100644
--- a/src/platform-openbsd.cc
+++ b/src/platform-openbsd.cc
@@ -118,7 +118,7 @@ int OS::ActivationFrameAlignment() {
void OS::ReleaseStore(volatile AtomicWord* ptr, AtomicWord value) {
- __asm__ __volatile__("" : : : "memory");
+ ATOMICOPS_COMPILER_BARRIER();
// An x86 store acts as a release barrier.
*ptr = value;
}
« no previous file with comments | « src/platform-linux.cc ('k') | src/platform-solaris.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698