[pypy-svn] r76793 - pypy/branch/markcompact/pypy/rpython/memory/gc

arigo at codespeak.net arigo at codespeak.net
Sun Aug 29 19:14:22 CEST 2010


Author: arigo
Date: Sun Aug 29 19:14:20 2010
New Revision: 76793

Modified:
   pypy/branch/markcompact/pypy/rpython/memory/gc/base.py
Log:
Move the call to self.debug_check_object(obj) at a place
where it is easier to debug from (because we have the source
object too).


Modified: pypy/branch/markcompact/pypy/rpython/memory/gc/base.py
==============================================================================
--- pypy/branch/markcompact/pypy/rpython/memory/gc/base.py	(original)
+++ pypy/branch/markcompact/pypy/rpython/memory/gc/base.py	Sun Aug 29 19:14:20 2010
@@ -220,7 +220,6 @@
             pending = self._debug_pending
             while pending.non_empty():
                 obj = pending.pop()
-                self.debug_check_object(obj)
                 self.trace(obj, self._debug_callback2, None)
             self._debug_seen.delete()
             self._debug_pending.delete()
@@ -229,6 +228,7 @@
         seen = self._debug_seen
         if not seen.contains(obj):
             seen.add(obj)
+            self.debug_check_object(obj)
             self._debug_pending.append(obj)
     def _debug_callback(self, root):
         obj = root.address[0]



More information about the Pypy-commit mailing list