[pypy-commit] pypy gc-incminimark-pinning: Remove the debug_prints

arigo noreply at buildbot.pypy.org
Wed Oct 22 16:37:11 CEST 2014


Author: Armin Rigo <arigo at tunes.org>
Branch: gc-incminimark-pinning
Changeset: r74086:89baa53de5f2
Date: 2014-10-22 16:36 +0200
http://bitbucket.org/pypy/pypy/changeset/89baa53de5f2/

Log:	Remove the debug_prints

diff --git a/rpython/memory/gc/incminimark.py b/rpython/memory/gc/incminimark.py
--- a/rpython/memory/gc/incminimark.py
+++ b/rpython/memory/gc/incminimark.py
@@ -1511,11 +1511,9 @@
         if self.old_objects_pointing_to_pinned.non_empty():
             current_old_objects_pointing_to_pinned = \
                     self.old_objects_pointing_to_pinned
-            debug_print("clear old_objects_pointing_to_pinned")
             self.old_objects_pointing_to_pinned = self.AddressStack()
             current_old_objects_pointing_to_pinned.foreach(
                 self._visit_old_objects_pointing_to_pinned, None)
-            debug_print("done repopulating old_objects_pointing_to_pinned")
             current_old_objects_pointing_to_pinned.delete()
         #
         while True:
@@ -1820,7 +1818,6 @@
             if parent != llmemory.NULL and \
                 not self.header(parent).tid & GCFLAG_PINNED_OBJECT_PARENT_KNOWN:
                 #
-                debug_print("old_objects_pointing_to_pinned:", parent)
                 self.old_objects_pointing_to_pinned.append(parent)
                 self.updated_old_objects_pointing_to_pinned = True
                 self.header(parent).tid |= GCFLAG_PINNED
@@ -2062,7 +2059,6 @@
                 # get rid of objects pointing to pinned objects that were not
                 # visited
                 if self.old_objects_pointing_to_pinned.non_empty():
-                    debug_print("_sweep_old_objects_pointing_to_pinned")
                     new_old_objects_pointing_to_pinned = self.AddressStack()
                     self.old_objects_pointing_to_pinned.foreach(
                             self._sweep_old_objects_pointing_to_pinned,
@@ -2151,10 +2147,7 @@
 
     def _sweep_old_objects_pointing_to_pinned(self, obj, new_list):
         if self.header(obj).tid & GCFLAG_VISITED:
-            debug_print(obj, "-> visited")
             new_list.append(obj)
-        else:
-            debug_print(obj, "-> drop")
 
     def _free_if_unvisited(self, hdr):
         size_gc_header = self.gcheaderbuilder.size_gc_header


More information about the pypy-commit mailing list