A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-June/026015.html below:

[Python-Dev] Garbage collector problem

[Python-Dev] Garbage collector problem [Python-Dev] Garbage collector problemTim Peters tim.one@comcast.net
Fri, 28 Jun 2002 14:59:54 -0400
[Kevin Jacobs, working hard!]

I don't know what causes this.  The little time I've been able to spend on
it ended up finding an obvious buglet in some new-in-2.3 gcmodule code:

	for (i = 0; i <= generation; i++)
		generations[generation].count = 0;

That was certainly intended to index by "i", not by "generation".

Fixing that makes the gc.DEBUG_STATS output less surprising, and cuts down
on the number of collections, but doesn't really cure anything.

Note that bound methods in 2.2 also create new objects, etc; that was good
deduction, but not yet good enough <wink>.





RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4