[pypy-commit] stmgc copy-over-original2: I think this is necessary, but I don't manage to write a test

arigo noreply at buildbot.pypy.org
Fri Jul 26 20:01:03 CEST 2013


Author: Armin Rigo <arigo at tunes.org>
Branch: copy-over-original2
Changeset: r457:bebb0740fe44
Date: 2013-07-26 19:44 +0200
http://bitbucket.org/pypy/stmgc/changeset/bebb0740fe44/

Log:	I think this is necessary, but I don't manage to write a test

diff --git a/c4/gcpage.c b/c4/gcpage.c
--- a/c4/gcpage.c
+++ b/c4/gcpage.c
@@ -302,8 +302,10 @@
         /* the h_original may be protected, or private_from_protected,
            in some cases.  Then we can't use it.  We'll use the most
            recent h_revision which is public. */
-        if (!(original->h_tid & GCFLAG_PUBLIC))
+        if (!(original->h_tid & GCFLAG_PUBLIC)) {
+            original->h_tid |= GCFLAG_MARKED;
             original = NULL;
+        }
     }
     else
         original = obj;


More information about the pypy-commit mailing list