[pypy-commit] stmgc copy-over-original2: update comment

Raemi noreply at buildbot.pypy.org
Tue Jul 16 14:41:01 CEST 2013


Author: Remi Meier <remi.meier at gmail.com>
Branch: copy-over-original2
Changeset: r402:a127a39f6967
Date: 2013-07-16 14:29 +0200
http://bitbucket.org/pypy/stmgc/changeset/a127a39f6967/

Log:	update comment

diff --git a/c4/gcpage.c b/c4/gcpage.c
--- a/c4/gcpage.c
+++ b/c4/gcpage.c
@@ -637,6 +637,7 @@
         assert(!(obj->h_tid & GCFLAG_STUB));
 
         if (!(obj->h_tid & GCFLAG_OLD)) {
+            assert(!(obj->h_tid & GCFLAG_PRIVATE_FROM_PROTECTED));
             obj = (gcptr)obj->h_revision;
             items[i] = obj;
         }
@@ -650,9 +651,7 @@
             assert(IS_POINTER(obj->h_revision));
             obj = (gcptr)obj->h_revision;
 
-            /* backup copies will never be candidates for copy over
-               prebuilts, because there is always the priv-from-prot
-               object inbetween */
+            /* the backup-ptr should already be updated: */
             assert(obj->h_tid & GCFLAG_OLD);
         }
 


More information about the pypy-commit mailing list