Author: Remi Meier
Branch: c7
Changeset: r709:1a1f89d3003c
Date: 2014-02-07 15:46 +0100
http://bitbucket.org/pypy/stmgc/changeset/1a1f89d3003c/

Log:    another comment

diff --git a/c7/core.h b/c7/core.h
--- a/c7/core.h
+++ b/c7/core.h
@@ -200,6 +200,10 @@
 static inline void write_fence(void)
 {
 #if defined(__amd64__) || defined(__i386__)
+    /* this is only a compiler barrier
+       use __sync_synchronize(...) or other __sync_OPs that
+       are locked by the CPU if you need to prevent
+       loads to be moved before stores to different locations */
     asm("" : : : "memory");
 #else
 #  error "Define write_fence() for your architecture"
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to