[pypy-svn] r47548 - pypy/dist/pypy/rpython/lltypesystem

fijal at codespeak.net fijal at codespeak.net
Thu Oct 18 15:05:39 CEST 2007


Author: fijal
Date: Thu Oct 18 15:05:38 2007
New Revision: 47548

Modified:
   pypy/dist/pypy/rpython/lltypesystem/ll2ctypes.py
   pypy/dist/pypy/rpython/lltypesystem/rffi.py
Log:
* XXX
* memo CArrayPtr


Modified: pypy/dist/pypy/rpython/lltypesystem/ll2ctypes.py
==============================================================================
--- pypy/dist/pypy/rpython/lltypesystem/ll2ctypes.py	(original)
+++ pypy/dist/pypy/rpython/lltypesystem/ll2ctypes.py	Thu Oct 18 15:05:38 2007
@@ -286,6 +286,7 @@
         if addr in ALLOCATED:
             raise Exception("internal ll2ctypes error - "
                             "double conversion from lltype to ctypes?")
+        # XXX don't store here immortal structures
         ALLOCATED[addr] = self
 
     def _free(self):

Modified: pypy/dist/pypy/rpython/lltypesystem/rffi.py
==============================================================================
--- pypy/dist/pypy/rpython/lltypesystem/rffi.py	(original)
+++ pypy/dist/pypy/rpython/lltypesystem/rffi.py	Thu Oct 18 15:05:38 2007
@@ -221,6 +221,7 @@
 
 def CArrayPtr(tp):
     return lltype.Ptr(CArray(tp))
+CArray._annspecialcase_ = 'specialize:memo'
 
 def COpaque(name, hints=None, **kwds):
     if hints is None:



More information about the Pypy-commit mailing list