[pypy-svn] r58570 - pypy/branch/gc-experiments/pypy/rpython/memory/gc

fijal at codespeak.net fijal at codespeak.net
Thu Oct 2 16:12:50 CEST 2008


Author: fijal
Date: Thu Oct  2 16:12:49 2008
New Revision: 58570

Modified:
   pypy/branch/gc-experiments/pypy/rpython/memory/gc/markcompact.py
Log:
Argh! I'm stupid. In C memory is *not* cleared just because


Modified: pypy/branch/gc-experiments/pypy/rpython/memory/gc/markcompact.py
==============================================================================
--- pypy/branch/gc-experiments/pypy/rpython/memory/gc/markcompact.py	(original)
+++ pypy/branch/gc-experiments/pypy/rpython/memory/gc/markcompact.py	Thu Oct  2 16:12:49 2008
@@ -182,6 +182,8 @@
         self.space        = toaddr
         self.free         = finaladdr
         self.top_of_space = toaddr + self.space_size
+        if not resizing:
+            llarena.arena_reset(self.free, self.top_of_space - self.free, True)
         self.debug_check_consistency()
         if not resizing:
             self.record_red_zone()
@@ -312,6 +314,7 @@
                 forward_ptr = hdr.forward_ptr
                 hdr.forward_ptr = NULL
                 hdr.tid &= ~(GCFLAG_MARKBIT|GCFLAG_FINALIZATION_ORDERING)
+                #if fromaddr != forward_ptr:
                 llmemory.raw_memmove(fromaddr, forward_ptr, totalsize)
             fromaddr += totalsize
 



More information about the Pypy-commit mailing list