[pypy-svn] r23352 - pypy/dist/pypy/rpython/memory

pedronis at codespeak.net pedronis at codespeak.net
Wed Feb 15 01:42:38 CET 2006


Author: pedronis
Date: Wed Feb 15 01:42:37 2006
New Revision: 23352

Modified:
   pypy/dist/pypy/rpython/memory/gctransform.py
Log:
fix boehm tranform! there's should be nicer helper to avoid forgetting this things.

XXX about missing feature in Boehm finalizers!



Modified: pypy/dist/pypy/rpython/memory/gctransform.py
==============================================================================
--- pypy/dist/pypy/rpython/memory/gctransform.py	(original)
+++ pypy/dist/pypy/rpython/memory/gctransform.py	Wed Feb 15 01:42:37 2006
@@ -589,6 +589,7 @@
             d = {'PTR_TYPE':DESTR_ARG,
                  'cast_adr_to_ptr':objectmodel.cast_adr_to_ptr,
                  'destrptr':destrptr}
+            # XXX swallow __del__ exceptions, preserve preexisting ones in case, minimal transform!!
             src = ("def finalizer(addr):\n"
                    "    v = cast_adr_to_ptr(addr, PTR_TYPE)\n"
                    "    destrptr(v)\n")
@@ -599,7 +600,8 @@
 
         if g:
             self.seen_graphs[g] = True
-
+            self.specialize_more_blocks()
+            
             fptr = lltype.functionptr(ADDRESS_VOID_FUNC, g.name, graph=g)
             self.finalizer_funcptrs[TYPE] = fptr
             return fptr



More information about the Pypy-commit mailing list