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

fijal at codespeak.net fijal at codespeak.net
Wed Oct 8 13:46:45 CEST 2008


Author: fijal
Date: Wed Oct  8 13:46:44 2008
New Revision: 58805

Modified:
   pypy/branch/gc-experiments/pypy/rpython/memory/gc/markcompact.py
Log:
(fijal, arigo) Reset arena for debugging


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	Wed Oct  8 13:46:44 2008
@@ -331,8 +331,9 @@
             objsize = self.get_size(obj)
             totalsize = size_gc_header + objsize
             if not self.surviving(obj): 
-                # this object dies
-                pass
+                # this object dies. Following line is a noop in C,
+                # we clear it to make debugging easier
+                llarena.arena_reset(fromaddr, totalsize, False)
             else:
                 ll_assert(self.is_forwarded(obj), "not forwarded, surviving obj")
                 forward_ptr = hdr.forward_ptr



More information about the Pypy-commit mailing list