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

fijal at codespeak.net fijal at codespeak.net
Wed Oct 1 13:25:40 CEST 2008


Author: fijal
Date: Wed Oct  1 13:25:38 2008
New Revision: 58522

Modified:
   pypy/branch/gc-experiments/pypy/rpython/memory/gc/markcompact.py
Log:
Fixes to pass basic tests again


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  1 13:25:38 2008
@@ -209,9 +209,10 @@
             if self.marked(obj):
                 return
             self.mark(obj)
-            self.to_see.append(obj)        
+            self.to_see.append(obj)
 
     def _mark_root_recursively(self, root):
+        self.mark(root.address[0])
         self.to_see.append(root.address[0])
 
     def mark(self, obj):
@@ -307,7 +308,9 @@
 
     def debug_check_object(self, obj):
         # not sure what to check here
-        pass
+        return
+        if self._is_external(obj):
+            assert not self.marked(self.header(obj)) and not self.surviving(obj)
 
     def id(self, ptr):
         obj = llmemory.cast_ptr_to_adr(ptr)



More information about the Pypy-commit mailing list