]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
SF 1055820: weakref callback vs gc vs threads
authorTim Peters <tim.peters@gmail.com>
Sat, 30 Oct 2004 23:09:22 +0000 (23:09 +0000)
committerTim Peters <tim.peters@gmail.com>
Sat, 30 Oct 2004 23:09:22 +0000 (23:09 +0000)
commitead8b7ab3008bda9b6a50d6d9d02ed68dab3b0fd
tree88d586b297a7587ee6face7b687b8a0008a2c3c1
parentd7bcf4deb174e5e5b6548eb64fe2b0735da5dc95
SF 1055820: weakref callback vs gc vs threads

In cyclic gc, clear weakrefs to unreachable objects before allowing any
Python code (weakref callbacks or __del__ methods) to run.

This is a critical bugfix, affecting all versions of Python since weakrefs
were introduced.  I'll backport to 2.3.
Include/weakrefobject.h
Lib/test/test_gc.py
Misc/NEWS
Modules/gc_weakref.txt
Modules/gcmodule.c
Objects/weakrefobject.c