gh-135552: Make the GC clear weakrefs later#136189
Merged
nascheme merged 20 commits intoAug 7, 2025
python:mainpython/cpython:mainfrom
nascheme:gh-135552-wr-clear-laternascheme/cpython:gh-135552-wr-clear-laterCopy head branch name to clipboard
Merged
gh-135552: Make the GC clear weakrefs later#136189nascheme merged 20 commits intopython:mainpython/cpython:mainfrom nascheme:gh-135552-wr-clear-laternascheme/cpython:gh-135552-wr-clear-laterCopy head branch name to clipboard
nascheme merged 20 commits into
python:mainpython/cpython:mainfrom
nascheme:gh-135552-wr-clear-laternascheme/cpython:gh-135552-wr-clear-laterCopy head branch name to clipboard
Commits
Commits on Jul 1, 2025
Make the GC clear weakrefs later.
Show description for 42abb05committed- committed
- committed
Commits on Jul 3, 2025
Defer weakref clears only for refs to classes.
Show description for 2f3dabacommittedEnsure weakrefs with callbacks are cleared early.
Show description for 123bc25committed- committed
Add comment about wrlist iteration.
Show description for 8a553d1committed- committed
Commits on Jul 8, 2025
- committed
- committed
Defer clear for weakrefs without callbacks.
Show description for 84bd123committed- committed
Commits on Jul 9, 2025
Commits on Jul 23, 2025
Commits on Aug 6, 2025
Commits on Aug 7, 2025
- committed
Revise comments about weakref handling.
Show description for 24fd972committed- committed