[pypy-svn] r75149 - pypy/branch/os-read-speedup/pypy/rpython/lltypesystem

fijal at codespeak.net fijal at codespeak.net
Sun Jun 6 17:46:40 CEST 2010


Author: fijal
Date: Sun Jun  6 17:46:38 2010
New Revision: 75149

Modified:
   pypy/branch/os-read-speedup/pypy/rpython/lltypesystem/rffi.py
Log:
Reintroduce not using malloc_nonmovable


Modified: pypy/branch/os-read-speedup/pypy/rpython/lltypesystem/rffi.py
==============================================================================
--- pypy/branch/os-read-speedup/pypy/rpython/lltypesystem/rffi.py	(original)
+++ pypy/branch/os-read-speedup/pypy/rpython/lltypesystem/rffi.py	Sun Jun  6 17:46:38 2010
@@ -645,7 +645,7 @@
         """
         str_chars_offset = (offsetof(STRTYPE, 'chars') + \
                             itemoffsetof(STRTYPE.chars, 0))
-        gc_buf = rgc.malloc_nonmovable(STRTYPE, count)
+        gc_buf = lltype.nullptr(STRTYPE) # rgc.malloc_nonmovable(STRTYPE, count)
         if gc_buf:
             realbuf = cast_ptr_to_adr(gc_buf) + str_chars_offset
             raw_buf = cast(TYPEP, realbuf)



More information about the Pypy-commit mailing list