[pypy-commit] stmgc default: Add an assert

arigo noreply at buildbot.pypy.org
Tue Mar 4 17:56:04 CET 2014


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r945:5f8edec122fe
Date: 2014-03-04 17:55 +0100
http://bitbucket.org/pypy/stmgc/changeset/5f8edec122fe/

Log:	Add an assert

diff --git a/c7/stm/core.c b/c7/stm/core.c
--- a/c7/stm/core.c
+++ b/c7/stm/core.c
@@ -227,6 +227,7 @@
 {
     assert(!_is_young(obj));
     assert((obj->stm_flags & GCFLAG_SMALL_UNIFORM) == 0);
+    assert(obj->stm_flags & GCFLAG_WRITE_BARRIER);
 
     char *realobj = REAL_ADDRESS(STM_SEGMENT->segment_base, obj);
     ssize_t obj_size = stmcb_size_rounded_up((struct object_s *)realobj);


More information about the pypy-commit mailing list