Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r944:164016b917bd
Date: 2014-03-04 10:34 +0100
http://bitbucket.org/pypy/stmgc/changeset/164016b917bd/

Log:    Clarify this assert

diff --git a/c7/stm/core.c b/c7/stm/core.c
--- a/c7/stm/core.c
+++ b/c7/stm/core.c
@@ -109,9 +109,9 @@
        still have the flag */
     long i;
     for (i = 0; i < NB_SEGMENTS; i++) {
-        assert(i == STM_SEGMENT->segment_num ||
-               (((struct object_s *)REAL_ADDRESS(get_segment_base(i), obj))
-                ->stm_flags & GCFLAG_WRITE_BARRIER));
+        if (i != STM_SEGMENT->segment_num)
+            assert(((struct object_s *)REAL_ADDRESS(get_segment_base(i), obj))
+                   ->stm_flags & GCFLAG_WRITE_BARRIER);
     }
 }
 
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to