]> granicus.if.org Git - python/commit
update_refs(): assert that incoming refcounts aren't 0. The comment
authorTim Peters <tim.peters@gmail.com>
Fri, 14 Nov 2003 00:01:17 +0000 (00:01 +0000)
committerTim Peters <tim.peters@gmail.com>
Fri, 14 Nov 2003 00:01:17 +0000 (00:01 +0000)
commit780c497972f367df86cf0f6f3b7c2aecf1e078d6
tree8c28622f4e96b83d10ef2a4a5421e9c743c10007
parent0bd743cee17ab8a96122ca0cc692419232a3d3bb
update_refs():  assert that incoming refcounts aren't 0.  The comment
for this function has always claimed that was true, but it wasn't
verified before.  For the latest batch of "double deallocation" bugs
(stemming from weakref callbacks invoked by way of subtype_dealloc),
this assert would have triggered (instead of waiting for
_Py_ForgetReference to die with a segfault later).
Modules/gcmodule.c