[Python-Dev] Re: [PythonLabs] Re: [Python-checkins]
python/dist/src/Modules gcmodule.c,2.33.6.5,2.33.6.6
Jeremy Hylton
jeremy@zope.com
04 Apr 2003 12:39:16 -0500
On Fri, 2003-04-04 at 11:46, Jeremy Hylton wrote:
> I think a safe approach would be to move everything out of unreachable
> and into either "collectable" or "finalizers". That way, we can do a
> while (!gc_list_is_empty(unreachable)) loop and always deal with the
> head of the unreachable list. Each time through the loop, the head of
> the list can be moved to collectable or finalizers or become unlinked,
> so we always make progress.
>
> Sound plausible?
Yes. I've got a patch that fixes the boom case, but I'm not sure I've
handled the case where the object becomes reachable as a result of
running PyObject_HasAttr(). I'll post after testing that.
Jeremy