]> granicus.if.org Git - python/commit
Clear weakrefs in garbage found by the GC (#16495)
authorNeil Schemenauer <nas-github@arctrix.com>
Mon, 30 Sep 2019 17:06:45 +0000 (10:06 -0700)
committerŁukasz Langa <lukasz@langa.pl>
Mon, 30 Sep 2019 17:06:45 +0000 (19:06 +0200)
commitbcda460baf25062ab68622b3f043f52b9db4d21d
tree91ef277ecc2096afafd441f2e1e04eef4402e16e
parentc9a413ede47171a224c72dd34122005170caaad4
Clear weakrefs in garbage found by the GC (#16495)

Fix a bug due to the interaction of weakrefs and the cyclic garbage
collector. We must clear any weakrefs in garbage in order to prevent
their callbacks from executing and causing a crash.
Misc/NEWS.d/next/Core and Builtins/2019-09-30-09-33-21.bpo-38006.UYlJum.rst [new file with mode: 0644]
Modules/gcmodule.c