Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 336e54f

Browse files
committed
Merged revisions 80705 via svnmerge from
svn+ssh://[email protected]/python/branches/py3k ................ r80705 | antoine.pitrou | 2010-05-02 21:59:47 +0200 (dim., 02 mai 2010) | 10 lines Merged revisions 80704 via svnmerge from svn+ssh://[email protected]/python/trunk ........ r80704 | antoine.pitrou | 2010-05-02 21:51:14 +0200 (dim., 02 mai 2010) | 4 lines Issue #4687: Fix accuracy of garbage collection runtimes displayed with gc.DEBUG_STATS. ........ ................
1 parent 82af01d commit 336e54f

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ Core and Builtins
4040
Library
4141
-------
4242

43+
- Issue #4687: Fix accuracy of garbage collection runtimes displayed with
44+
gc.DEBUG_STATS.
45+
4346
- Issue #8464: tarfile no longer creates files with execute permissions set
4447
when mode="w|" is used.
4548

Modules/gcmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,13 +804,13 @@ collect(int generation)
804804
}
805805

806806
if (debug & DEBUG_STATS) {
807-
t1 = get_time();
808807
PySys_WriteStderr("gc: collecting generation %d...\n",
809808
generation);
810809
PySys_WriteStderr("gc: objects in each generation:");
811810
for (i = 0; i < NUM_GENERATIONS; i++)
812811
PySys_WriteStderr(" %" PY_FORMAT_SIZE_T "d",
813812
gc_list_size(GEN_HEAD(i)));
813+
t1 = get_time();
814814
PySys_WriteStderr("\n");
815815
}
816816

0 commit comments

Comments
 (0)