[Python-Dev] cycle-GC question
Charles G Waldman
cgw@fnal.gov
Tue, 19 Dec 2000 00:32:15 -0600 (CST)
The following program:
import rexec
while 1:
x = rexec.RExec()
del x
leaks memory at a fantastic rate.
It seems clear (?) that this is due to the call to "set_rexec" at
rexec.py:140, which creates a circular reference between the `rexec'
and `hooks' objects. (There's even a nice comment to that effect).
I'm curious however as to why the spiffy new cyclic-garbage collector
doesn't pick this up?
Just-wondering-ly y'rs,
cgw