[Cython] cython leaks references to Py_None for cdef'ed globals
Michael Abshoff
michael.abshoff at googlemail.com
Wed Oct 1 21:34:41 CEST 2008
Dag Sverre Seljebotn wrote:
Hi,
> I say let them leak? The only real risk (that I can see at least) is overflowing the refcount,
> and if I understand and remember an informal chat correctly even that
is eliminated in newer
> Python versions where Py_None and friends have special deallocation
which never deallocate...
I have had the pleasure to debug refcount reference overflows and let me
say it is not something I would like to repeat since it happened only on
32 bit test systems (the count would also wraps on a 64 bit box, but
that would take a while longer). So I would highly suggest to fix any
reference count leak since you never want code to crash for stupid
reasons like this.
> Dag Sverre Seljebotn
<SNIP>
Cheers,
Michael
More information about the Cython-dev
mailing list