[pypy-commit] stmgc copy-over-original2: Some fixes
arigo
noreply at buildbot.pypy.org
Thu Jul 25 17:29:24 CEST 2013
Author: Armin Rigo <arigo at tunes.org>
Branch: copy-over-original2
Changeset: r436:e007ec3d53f3
Date: 2013-07-25 17:29 +0200
http://bitbucket.org/pypy/stmgc/changeset/e007ec3d53f3/
Log: Some fixes
diff --git a/c4/gcpage.c b/c4/gcpage.c
--- a/c4/gcpage.c
+++ b/c4/gcpage.c
@@ -332,8 +332,10 @@
}
else {
/* the stub target is just a protected object.
- The head of the public chain is obj. */
+ The head of the public chain is obj. We have to
+ explicitly keep obj2 alive. */
assert(!IS_POINTER(obj2->h_revision));
+ visit_nonpublic(obj2);
break;
}
}
@@ -355,7 +357,7 @@
survived.
*/
gcptr obj = *pobj;
- if (obj == NULL);
+ if (obj == NULL)
return;
if (!(obj->h_tid & GCFLAG_PUBLIC)) {
More information about the pypy-commit
mailing list