mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
visit_decref(): Added another assert.
This commit is contained in:
parent
285f4a7db7
commit
aab713bdf7
1 changed files with 1 additions and 0 deletions
|
@ -224,6 +224,7 @@ visit_decref(PyObject *op, void *data)
|
|||
* generation being collected, which can be recognized
|
||||
* because only they have positive gc_refs.
|
||||
*/
|
||||
assert(gc->gc.gc_refs != 0); /* else refcount was too small */
|
||||
if (gc->gc.gc_refs > 0)
|
||||
gc->gc.gc_refs--;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue