[pypy-svn] r51817 - pypy/branch/unified-rtti/pypy/rpython/memory/gc

arigo at codespeak.net arigo at codespeak.net
Sat Feb 23 11:05:54 CET 2008


Author: arigo
Date: Sat Feb 23 11:05:53 2008
New Revision: 51817

Modified:
   pypy/branch/unified-rtti/pypy/rpython/memory/gc/marksweep.py
Log:
Typo.


Modified: pypy/branch/unified-rtti/pypy/rpython/memory/gc/marksweep.py
==============================================================================
--- pypy/branch/unified-rtti/pypy/rpython/memory/gc/marksweep.py	(original)
+++ pypy/branch/unified-rtti/pypy/rpython/memory/gc/marksweep.py	Sat Feb 23 11:05:53 2008
@@ -623,6 +623,7 @@
             hdr.setmark2()      # mark all objects from malloced_list
             oldobjects.append(llmemory.cast_ptr_to_adr(hdr))
             hdr = next
+        del hdr
 
         # a stack of addresses of places that still points to old objects
         # and that must possibly be fixed to point to a new copy
@@ -640,7 +641,7 @@
                 continue   # ignore objects that were not in the malloced_list
             newhdr = oldhdr.getnext()      # abused to point to the copy
             if not newhdr:
-                typeid = hdr.typeptr
+                typeid = oldhdr.typeptr
                 size = self.fixed_size(typeid)
                 # XXX! collect() at the beginning if the free heap is low
                 if self.is_varsize(typeid):



More information about the Pypy-commit mailing list