[pypy-svn] r31717 - pypy/branch/no-zeroing-assumption/pypy/rpython/memory

mwh at codespeak.net mwh at codespeak.net
Sun Aug 27 13:01:15 CEST 2006


Author: mwh
Date: Sun Aug 27 13:01:15 2006
New Revision: 31717

Modified:
   pypy/branch/no-zeroing-assumption/pypy/rpython/memory/support.py
Log:
commented out code for zeroing memory allocated for AddressLinkedLists
(it doesn't work on the simulator, or something annoying like that)


Modified: pypy/branch/no-zeroing-assumption/pypy/rpython/memory/support.py
==============================================================================
--- pypy/branch/no-zeroing-assumption/pypy/rpython/memory/support.py	(original)
+++ pypy/branch/no-zeroing-assumption/pypy/rpython/memory/support.py	Sun Aug 27 13:01:15 2006
@@ -16,6 +16,8 @@
                                    llmemory.Address, chunk_size))))
     null_chunk = lltype.nullptr(CHUNK)
 
+##     SIZEOF_CHUNK = llmemory.sizeof(CHUNK)
+
     class FreeList(object):
         _alloc_flavor_ = "raw"
 
@@ -24,7 +26,11 @@
 
         def get(self):
             if not self.free_list:
-                return lltype.malloc(CHUNK, flavor='raw')
+                r = lltype.malloc(CHUNK, flavor="raw")
+##                 from pypy.rpython.memory.lladdress import raw_memclear
+##                 raw_memclear(llmemory.cast_ptr_to_adr(r), SIZEOF_CHUNK)
+                return r
+                
             result = self.free_list
             self.free_list = result.previous
             return result



More information about the Pypy-commit mailing list