[pypy-svn] r27623 - pypy/dist/pypy/translator/c

arigo at codespeak.net arigo at codespeak.net
Tue May 23 16:54:30 CEST 2006


Author: arigo
Date: Tue May 23 16:54:29 2006
New Revision: 27623

Modified:
   pypy/dist/pypy/translator/c/gc.py
Log:
Missing from the previous check-in.


Modified: pypy/dist/pypy/translator/c/gc.py
==============================================================================
--- pypy/dist/pypy/translator/c/gc.py	(original)
+++ pypy/dist/pypy/translator/c/gc.py	Tue May 23 16:54:29 2006
@@ -357,6 +357,13 @@
             # make sure this is seen by the database early, i.e. before
             # finish_helpers() on the gctransformer
             self.db.get(destrptr)
+            # the following, on the other hand, will only discover ll_finalizer
+            # 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.
+            gctransf = self.db.gctransformer
+            fptr = gctransf.finalizer_funcptr_for_type(structdefnode.STRUCT)
+            self.db.get(fptr)
 
     def array_setup(self, arraydefnode):
         pass



More information about the Pypy-commit mailing list