[Python-Dev] Re: [PythonLabs] Re: [Python-checkins] python/dist/src/Modules gcmodule.c,,

Jeremy Hylton jeremy@zope.com
04 Apr 2003 13:26:11 -0500

On Fri, 2003-04-04 at 12:39, Jeremy Hylton wrote:
> 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.

It's SF patch 715446.

There's a lingering problem with test_gc, but I hope it's tractable.