[pypy-commit] stmgc default: Add asserts

arigo noreply at buildbot.pypy.org
Mon Jul 1 11:48:03 CEST 2013


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r327:07c9a1daeba2
Date: 2013-07-01 11:47 +0200
http://bitbucket.org/pypy/stmgc/changeset/07c9a1daeba2/

Log:	Add asserts

diff --git a/c4/gcpage.c b/c4/gcpage.c
--- a/c4/gcpage.c
+++ b/c4/gcpage.c
@@ -269,6 +269,7 @@
     else {
         assert(obj->h_tid & GCFLAG_PRIVATE_FROM_PROTECTED);
         gcptr B = (gcptr)obj->h_revision;
+        assert(!(B->h_tid & GCFLAG_STUB));
         gcptrlist_insert(&objects_to_trace, B);
 
         if (!(B->h_tid & GCFLAG_PUBLIC)) {
@@ -286,6 +287,7 @@
         }
     }
     obj->h_tid |= GCFLAG_VISITED;
+    assert(!(obj->h_tid & GCFLAG_STUB));
     gcptrlist_insert(&objects_to_trace, obj);
 }
 


More information about the pypy-commit mailing list