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

Unified Diff: src/platform-linux.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-freebsd.cc ('k') | src/platform-openbsd.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform-linux.cc
diff --git a/src/platform-linux.cc b/src/platform-linux.cc
index f6db423e4276a4c22bf767629980f8ceb39733f1..90a249861f88b88b69e02d315a2413856c876f25 100644
--- a/src/platform-linux.cc
+++ b/src/platform-linux.cc
@@ -278,7 +278,7 @@ void OS::ReleaseStore(volatile AtomicWord* ptr, AtomicWord value) {
// Only use on ARM or MIPS hardware.
MemoryBarrier();
#else
- __asm__ __volatile__("" : : : "memory");
+ ATOMICOPS_COMPILER_BARRIER();
// An x86 store acts as a release barrier.
#endif
*ptr = value;
« no previous file with comments | « src/platform-freebsd.cc ('k') | src/platform-openbsd.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698