]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
SF 1055820: weakref callback vs gc vs threads
authorTim Peters <tim.peters@gmail.com>
Sun, 31 Oct 2004 00:13:07 +0000 (00:13 +0000)
committerTim Peters <tim.peters@gmail.com>
Sun, 31 Oct 2004 00:13:07 +0000 (00:13 +0000)
commit7d37a2a564c18ea4e6b66b5622cfeee56666f900
tree40cc16f0d23e68a552dbb0b762e4efc0ef9c0767
parentd9016a00fbff494f552e84a6f4f0c4c1edb5ea4b
SF 1055820: weakref callback vs gc vs threads

In cyclic gc, clear all 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.
Include/weakrefobject.h
Lib/test/test_gc.py
Misc/NEWS
Modules/gc_weakref.txt
Modules/gcmodule.c
Objects/weakrefobject.c