[pypy-svn] r46556 - pypy/dist/pypy/rpython/memory
cfbolz at codespeak.net
cfbolz at codespeak.net
Thu Sep 13 21:47:55 CEST 2007
Author: cfbolz
Date: Thu Sep 13 21:47:53 2007
New Revision: 46556
Modified:
pypy/dist/pypy/rpython/memory/gc.py
Log:
fix generic malloc, which doesn't seem to be used often
Modified: pypy/dist/pypy/rpython/memory/gc.py
==============================================================================
--- pypy/dist/pypy/rpython/memory/gc.py (original)
+++ pypy/dist/pypy/rpython/memory/gc.py Thu Sep 13 21:47:53 2007
@@ -177,10 +177,10 @@
itemsize = self.varsize_item_sizes(typeid)
offset_to_length = self.varsize_offset_to_length(typeid)
ref = self.malloc_varsize(typeid, length, size, itemsize,
- offset_to_length, True, needs_finalizer,
- contains_weakptr)
+ offset_to_length, True, needs_finalizer)
else:
- ref = self.malloc_fixedsize(typeid, size, True, needs_finalizer)
+ ref = self.malloc_fixedsize(typeid, size, True, needs_finalizer,
+ contains_weakptr)
# XXX lots of cast and reverse-cast around, but this malloc()
# should eventually be killed
return llmemory.cast_ptr_to_adr(ref)
More information about the Pypy-commit
mailing list