[pypy-svn] r74759 - pypy/trunk/pypy/rpython/lltypesystem

fijal at codespeak.net fijal at codespeak.net
Wed May 26 00:55:44 CEST 2010


Author: fijal
Date: Wed May 26 00:55:41 2010
New Revision: 74759

Modified:
   pypy/trunk/pypy/rpython/lltypesystem/rffi.py
Log:
Never run rgc.malloc_nonmovable here. It seems to be a bad idea in some places
and does not help in other places. I'll run benchmarks and look if to disable
it permanently or to revive it.


Modified: pypy/trunk/pypy/rpython/lltypesystem/rffi.py
==============================================================================
--- pypy/trunk/pypy/rpython/lltypesystem/rffi.py	(original)
+++ pypy/trunk/pypy/rpython/lltypesystem/rffi.py	Wed May 26 00:55:41 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