[pypy-commit] pypy stm-gc: Fix

arigo noreply at buildbot.pypy.org
Sun Feb 19 20:11:09 CET 2012


Author: Armin Rigo <arigo at tunes.org>
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");
 }


More information about the pypy-commit mailing list