[pypy-commit] stmgc default: Add an assert that fails

arigo noreply at buildbot.pypy.org
Sat Feb 21 12:55:36 CET 2015


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


More information about the pypy-commit mailing list