[pypy-svn] r63773 - pypy/branch/pyjitpl5-simplify/pypy/rlib

fijal at codespeak.net fijal at codespeak.net
Tue Apr 7 07:26:46 CEST 2009


Author: fijal
Date: Tue Apr  7 07:26:45 2009
New Revision: 63773

Modified:
   pypy/branch/pyjitpl5-simplify/pypy/rlib/libffi.py
Log:
don't annotate rmmap.alloc as constant. this explodes in jit when translated
together wil libffi. Any less-temporary fix in mind?


Modified: pypy/branch/pyjitpl5-simplify/pypy/rlib/libffi.py
==============================================================================
--- pypy/branch/pyjitpl5-simplify/pypy/rlib/libffi.py	(original)
+++ pypy/branch/pyjitpl5-simplify/pypy/rlib/libffi.py	Tue Apr  7 07:26:45 2009
@@ -10,6 +10,7 @@
 from pypy.tool.autopath import pypydir
 from pypy.translator.tool.cbuild import ExternalCompilationInfo
 from pypy.rlib.rmmap import alloc
+from pypy.rlib.nonconst import NonConstant
 import py
 import os
 import sys
@@ -408,7 +409,7 @@
         self.free_list = lltype.nullptr(rffi.VOIDP.TO)
 
     def _more(self):
-        chunk = rffi.cast(CLOSURES, alloc(CHUNK))
+        chunk = rffi.cast(CLOSURES, alloc(NotConstant(CHUNK)))
         count = CHUNK//rffi.sizeof(FFI_CLOSUREP.TO)
         for i in range(count):
             rffi.cast(rffi.VOIDPP, chunk)[0] = self.free_list



More information about the Pypy-commit mailing list