Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r340:57601aa1cb4b
Date: 2013-07-03 15:07 +0200
http://bitbucket.org/pypy/stmgc/changeset/57601aa1cb4b/

Log:    Add more checks

diff --git a/c4/steal.c b/c4/steal.c
--- a/c4/steal.c
+++ b/c4/steal.c
@@ -253,6 +253,7 @@
     for (i = 0; i < size; i += 2) {
         gcptr B = items[i];
         assert(!(B->h_tid & GCFLAG_BACKUP_COPY));  /* already removed */
+        assert(B->h_tid & GCFLAG_PUBLIC);
 
         /* to be on the safe side --- but actually needed, see the
            gcptrlist_insert2(L, NULL) above */
@@ -264,6 +265,7 @@
         assert(L->h_tid & GCFLAG_PRIVATE_FROM_PROTECTED);
         assert(IS_POINTER(L->h_revision));
 
+        assert(B->h_tid & GCFLAG_PUBLIC_TO_PRIVATE);
         g2l_insert(&d->public_to_private, B, L);
 
         /* this is definitely needed: all keys in public_to_private
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to