[pypy-svn] r74895 - pypy/release/1.2.1.x/pypy/rpython/lltypesystem
fijal at codespeak.net
fijal at codespeak.net
Sat May 29 20:49:10 CEST 2010
Author: fijal
Date: Sat May 29 20:49:09 2010
New Revision: 74895
Modified:
pypy/release/1.2.1.x/pypy/rpython/lltypesystem/rffi.py
Log:
Revert a change that broke benchmarks.
Modified: pypy/release/1.2.1.x/pypy/rpython/lltypesystem/rffi.py
==============================================================================
--- pypy/release/1.2.1.x/pypy/rpython/lltypesystem/rffi.py (original)
+++ pypy/release/1.2.1.x/pypy/rpython/lltypesystem/rffi.py Sat May 29 20:49:09 2010
@@ -645,7 +645,7 @@
"""
str_chars_offset = (offsetof(STRTYPE, 'chars') + \
itemoffsetof(STRTYPE.chars, 0))
- gc_buf = lltype.nullptr(STRTYPE) # rgc.malloc_nonmovable(STRTYPE, count)
+ gc_buf = 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