Author: Armin Rigo <[email protected]>
Branch: gc-del
Changeset: r63648:f71b0fe069f3
Date: 2013-04-26 15:32 +0200
http://bitbucket.org/pypy/pypy/changeset/f71b0fe069f3/
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,17 +315,16 @@
if rtti is not None and hasattr(rtti._obj, 'destructor_funcptr'):
gctransf = self.db.gctransformer
TYPE = structdefnode.STRUCT
- fptrs = gctransf.special_funcptr_for_type(TYPE)
+ kind, fptr = 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
self.db.get(destrptr)
- # the following, on the other hand, will only discover ll_finalizer
+ # the following, on the other hand, will only find ll_destructor
# 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.
- for fptr in fptrs.values():
- self.db.get(fptr)
+ self.db.get(fptr)
def array_setup(self, arraydefnode):
pass
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit