Author: Remi Meier <meier...@student.ethz.ch>
Branch: implement-id
Changeset: r221:16af90468dcd
Date: 2013-06-21 13:23 +0200
http://bitbucket.org/pypy/stmgc/changeset/16af90468dcd/

Log:    minor changes

diff --git a/c4/et.c b/c4/et.c
--- a/c4/et.c
+++ b/c4/et.c
@@ -446,6 +446,7 @@
 
   B = stmgc_duplicate_old(P);
   B->h_tid |= GCFLAG_BACKUP_COPY;
+  B->h_tid &= ~GCFLAG_HAS_ID;
   if (!(P->h_original) && (P->h_tid & GCFLAG_OLD)) {
       B->h_original = (revision_t)P;
   }
@@ -1021,6 +1022,7 @@
       }
       else {
         L->h_original = (revision_t)stub;
+        assert(0);
       }
       
       item->val = stub;
diff --git a/c4/nursery.c b/c4/nursery.c
--- a/c4/nursery.c
+++ b/c4/nursery.c
@@ -83,7 +83,6 @@
     gcptr L = (gcptr)stmgcpage_malloc(size);
     memcpy(L, P, size);
     L->h_tid |= GCFLAG_OLD;
-    assert(!(L->h_tid & GCFLAG_HAS_ID));
 
     return L;
 }
diff --git a/c4/steal.c b/c4/steal.c
--- a/c4/steal.c
+++ b/c4/steal.c
@@ -89,6 +89,7 @@
     }
     else {
         obj->h_original = (revision_t)stub;
+        assert(0);
     }
 
     g2l_insert(&sd->all_stubs, obj, stub);
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to