Author: Armin Rigo <[email protected]>
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);
 }
 
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to