[pypy-svn] r49788 - in pypy/branch/lazy-write-barrier/pypy/rpython/memory: . gc

fijal at codespeak.net fijal at codespeak.net
Fri Dec 14 16:36:30 CET 2007


Author: fijal
Date: Fri Dec 14 16:36:30 2007
New Revision: 49788

Modified:
   pypy/branch/lazy-write-barrier/pypy/rpython/memory/gc/generation.py
   pypy/branch/lazy-write-barrier/pypy/rpython/memory/gctypelayout.py
Log:
Don't check in pdb


Modified: pypy/branch/lazy-write-barrier/pypy/rpython/memory/gc/generation.py
==============================================================================
--- pypy/branch/lazy-write-barrier/pypy/rpython/memory/gc/generation.py	(original)
+++ pypy/branch/lazy-write-barrier/pypy/rpython/memory/gc/generation.py	Fri Dec 14 16:36:30 2007
@@ -294,9 +294,10 @@
             self.remember_young_pointer(addr_struct, newvalue)
         if self.header(addr_struct).tid & GCFLAG_NEVER_SET:
             self.move_to_static_roots(addr_struct)
+            self.calls += 1
 
     def append_to_static_roots(self, pointer, arg):
-        os.write(2, "3\n")
+        os.write(2, str(self.calls) + "\n")
         self.get_roots.append_static_root(pointer)
 
     def move_to_static_roots(self, addr_struct):

Modified: pypy/branch/lazy-write-barrier/pypy/rpython/memory/gctypelayout.py
==============================================================================
--- pypy/branch/lazy-write-barrier/pypy/rpython/memory/gctypelayout.py	(original)
+++ pypy/branch/lazy-write-barrier/pypy/rpython/memory/gctypelayout.py	Fri Dec 14 16:36:30 2007
@@ -175,8 +175,6 @@
         adr = llmemory.cast_ptr_to_adr(value._as_ptr())
         if TYPE._gckind == "gc":
             if gen_gc:
-                import py
-                py.test.pdb()
                 for a in gc_pointers_inside(value, adr):
                     self.additional_roots_sources += 1
                 return



More information about the Pypy-commit mailing list