[pypy-commit] pypy stm-thread-2: Fix translation.

arigo noreply at buildbot.pypy.org
Thu Sep 13 10:06:29 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: stm-thread-2
Changeset: r57322:cf1fa7435912
Date: 2012-09-13 10:04 +0200
http://bitbucket.org/pypy/pypy/changeset/cf1fa7435912/

Log:	Fix translation.

diff --git a/pypy/translator/stm/src_stm/et.h b/pypy/translator/stm/src_stm/et.h
--- a/pypy/translator/stm/src_stm/et.h
+++ b/pypy/translator/stm/src_stm/et.h
@@ -71,6 +71,8 @@
     (__builtin_expect((((gcptr)(R))->h_tid & GCFLAG_NOT_WRITTEN) == 0, 1) ? \
      (R) : (typeof(R))stm_WriteBarrierFromReady((gcptr)(R)))
 
+#define STM_BARRIER_O2W(R)  STM_BARRIER_R2W(R)   /* same logic works here */
+
 #define STM_PTR_EQ(P1, P2)                      \
     stm_PtrEq((gcptr)(P1), (gcptr)(P2))
 


More information about the pypy-commit mailing list