[Python-checkins] r80704 - in python/trunk: Misc/NEWS Modules/gcmodule.c
antoine.pitrou
python-checkins at python.org
Sun May 2 21:51:14 CEST 2010
Author: antoine.pitrou
Date: Sun May 2 21:51:14 2010
New Revision: 80704
Log:
Issue #4687: Fix accuracy of garbage collection runtimes displayed with
gc.DEBUG_STATS.
Modified:
python/trunk/Misc/NEWS
python/trunk/Modules/gcmodule.c
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS (original)
+++ python/trunk/Misc/NEWS Sun May 2 21:51:14 2010
@@ -31,6 +31,9 @@
Library
-------
+- Issue #4687: Fix accuracy of garbage collection runtimes displayed with
+ gc.DEBUG_STATS.
+
- Issue #7192: webbrowser.get("firefox") now wors on Mac OS X, as does
webbrowser.get("safari").
Modified: python/trunk/Modules/gcmodule.c
==============================================================================
--- python/trunk/Modules/gcmodule.c (original)
+++ python/trunk/Modules/gcmodule.c Sun May 2 21:51:14 2010
@@ -837,13 +837,13 @@
}
if (debug & DEBUG_STATS) {
- t1 = get_time();
PySys_WriteStderr("gc: collecting generation %d...\n",
generation);
PySys_WriteStderr("gc: objects in each generation:");
for (i = 0; i < NUM_GENERATIONS; i++)
PySys_WriteStderr(" %" PY_FORMAT_SIZE_T "d",
gc_list_size(GEN_HEAD(i)));
+ t1 = get_time();
PySys_WriteStderr("\n");
}
More information about the Python-checkins
mailing list