bugs in `gc.get_referents()'

Michael Hudson mwh at python.net
Tue Nov 27 12:01:26 CET 2001

On Tue, 27 Nov 2001, Martin von Loewis wrote:

> > > Again, this might go away with the patch. get_referents isn't supposed
> > > to trigger a garbage collection.
> > 
> > All those PyList_Appends might, though.
> How could that happen? PyList_Append calls ins1, which calls (through
> NRESIZE) PyMem_RESIZE, which is realloc. Apart from that, and apart
> from the error cases (which lead to immediate abortion of
> get_referrers), it only does INCREFs.

Oh yeah.  Sorry, brain fart.

Something like it could trigger a gc in other languages; not this one.



More information about the Python-list mailing list