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

fijal at codespeak.net fijal at codespeak.net
Thu Oct 2 16:15:29 CEST 2008


Author: fijal
Date: Thu Oct  2 16:15:28 2008
New Revision: 58571

Modified:
   pypy/branch/gc-experiments/pypy/rpython/memory/gc/markcompact.py
Log:
shuffle a bit. Free old arena in case it resized


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:15:28 2008
@@ -179,11 +179,13 @@
             self.invalidate_weakrefs()
         self.update_objects_with_id()
         self.compact(resizing)
+        if not resizing:
+            llarena.arena_reset(finaladdr, self.space_size, True)
+        else:
+            llarena.arena_free(self.space)
         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()



More information about the Pypy-commit mailing list