Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r1639:e121fe82bf2c
Date: 2015-02-21 12:26 +0100
http://bitbucket.org/pypy/stmgc/changeset/e121fe82bf2c/

Log:    Add an assert that fails

diff --git a/c7/stm/gcpage.c b/c7/stm/gcpage.c
--- a/c7/stm/gcpage.c
+++ b/c7/stm/gcpage.c
@@ -139,6 +139,9 @@
         char *dest = get_segment_base(j) + nobj;
         memcpy(dest, initial_data, size_rounded_up);
         ((struct object_s *)dest)->stm_flags = GCFLAG_WRITE_BARRIER;
+        if (j) {
+            assert(!was_read_remote(get_segment_base(j), (object_t *)nobj));
+        }
     }
 
     release_privatization_lock();
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to