[pypy-commit] pypy stm-gc: Print some minimal information about the size of the collection.

arigo noreply at buildbot.pypy.org
Sat Feb 18 10:15:11 CET 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: stm-gc
Changeset: r52602:e83210db5d76
Date: 2012-02-18 10:14 +0100
http://bitbucket.org/pypy/pypy/changeset/e83210db5d76/

Log:	Print some minimal information about the size of the collection.

diff --git a/pypy/rpython/memory/gc/stmgc.py b/pypy/rpython/memory/gc/stmgc.py
--- a/pypy/rpython/memory/gc/stmgc.py
+++ b/pypy/rpython/memory/gc/stmgc.py
@@ -6,6 +6,7 @@
 from pypy.rpython.annlowlevel import llhelper
 from pypy.rlib.rarithmetic import LONG_BIT
 from pypy.rlib.debug import ll_assert, debug_start, debug_stop, fatalerror
+from pypy.rlib.debug import debug_print
 from pypy.module.thread import ll_thread
 
 
@@ -462,6 +463,8 @@
         # called a nursery).  To simplify things, we use a global lock
         # around the whole mark-and-move.
         self.gc.acquire(self.gc.mutex_lock)
+        debug_print("local arena:", tls.nursery_free - tls.nursery_start,
+                    "bytes")
         #
         # We are starting from the tldict's local objects as roots.  At
         # this point, these objects have GCFLAG_WAS_COPIED, and the other


More information about the pypy-commit mailing list