[Python-Dev] Garbage collector problem
Jeremy Hylton
jeremy@zope.com
Fri, 28 Jun 2002 11:49:46 -0400
>>>>> "KJ" == Kevin Jacobs <jacobs@penguin.theopalgroup.com> writes:
KJ> On Fri, 28 Jun 2002, Neil Schemenauer wrote:
>> Another idea would be exploit the fact that we know most of the
>> root objects (e.g. sys.modules and the current stack of frames).
>> I haven't figured out a good use for this knowledge though.
KJ> If the root objects cannot be reached by the GC traversal, you
KJ> get the approach that Jeremy is suggesting. (Though I just
KJ> looked, and frame objects aren't exempt from tracking)
Right. My suggestion is to not track a set of objects that otherwise
would be tracked -- the current frame and its local variables.
Jeremy