Author: Armin Rigo <[email protected]>
Branch: stm-gc
Changeset: r52651:f20611c076c0
Date: 2012-02-19 20:08 +0100
http://bitbucket.org/pypy/pypy/changeset/f20611c076c0/
Log: Fix
diff --git a/pypy/translator/stm/src_stm/atomic_ops.h
b/pypy/translator/stm/src_stm/atomic_ops.h
--- a/pypy/translator/stm/src_stm/atomic_ops.h
+++ b/pypy/translator/stm/src_stm/atomic_ops.h
@@ -41,5 +41,7 @@
static inline void spinloop(void)
{
- asm volatile ("pause");
+ /* use "memory" here to make sure that gcc will reload the
+ relevant data from memory after the spinloop */
+ asm volatile ("pause":::"memory");
}
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit