[pypy-commit] pypy gc-del: Fix

arigo noreply at buildbot.pypy.org
Fri Apr 26 19:41:53 CEST 2013


Author: Armin Rigo <arigo at tunes.org>
Branch: gc-del
Changeset: r63659:85c537a8f596
Date: 2013-04-26 19:44 +0200
http://bitbucket.org/pypy/pypy/changeset/85c537a8f596/

Log:	Fix

diff --git a/rpython/translator/c/gc.py b/rpython/translator/c/gc.py
--- a/rpython/translator/c/gc.py
+++ b/rpython/translator/c/gc.py
@@ -315,7 +315,7 @@
         if rtti is not None and hasattr(rtti._obj, 'destructor_funcptr'):
             gctransf = self.db.gctransformer
             TYPE = structdefnode.STRUCT
-            kind, fptr = gctransf.special_funcptr_for_type(TYPE)
+            fptrs = gctransf.special_funcptr_for_type(TYPE)
             # make sure this is seen by the database early, i.e. before
             # finish_helpers() on the gctransformer
             destrptr = rtti._obj.destructor_funcptr
@@ -324,7 +324,8 @@
             # helpers.  The get() sees and records a delayed pointer.  It is
             # still important to see it so that it can be followed as soon as
             # the mixlevelannotator resolves it.
-            self.db.get(fptr)
+            for fptr in fptrs.values():
+                self.db.get(fptr)
 
     def array_setup(self, arraydefnode):
         pass


More information about the pypy-commit mailing list