Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r469:0ebfd6dd4f46
Date: 2013-07-28 16:05 +0200
http://bitbucket.org/pypy/stmgc/changeset/0ebfd6dd4f46/

Log:    Better code this way

diff --git a/c4/stmgc.h b/c4/stmgc.h
--- a/c4/stmgc.h
+++ b/c4/stmgc.h
@@ -160,13 +160,13 @@
 #define UNLIKELY(test)  __builtin_expect(test, 0)
 
 #define stm_read_barrier(obj)                                   \
-    (UNLIKELY(((obj)->h_revision != stm_private_rev_num) &      \
+    (UNLIKELY(((obj)->h_revision != stm_private_rev_num) &&     \
               (FXCACHE_AT(obj) != (obj))) ?                     \
         stm_DirectReadBarrier(obj)                              \
      :  (obj))
 
 #define stm_write_barrier(obj)                                  \
-    (UNLIKELY(((obj)->h_revision != stm_private_rev_num) |      \
+    (UNLIKELY(((obj)->h_revision != stm_private_rev_num) ||     \
               (((obj)->h_tid & GCFLAG_WRITE_BARRIER) != 0)) ?   \
         stm_WriteBarrier(obj)                                   \
      :  (obj))
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to