New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-88863: clear ref cycles to resolve leak when asyncio.open_connection raises #95739
gh-88863: clear ref cycles to resolve leak when asyncio.open_connection raises #95739
Conversation
Break reference cycles to resolve memory leak, by removing local exception and future instances from the frame
a94e8c1
to
b5bf956
Compare
|
Thank you for the review @kumaraditya303, and sorry for my late response. |
Misc/NEWS.d/next/Library/2022-08-06-12-18-07.gh-issue-88863.NnqsuJ.rst
Outdated
Show resolved
Hide resolved
|
Thanks @frostbyte134 for the PR, and @gvanrossum for merging it |
|
Sorry, @frostbyte134 and @gvanrossum, I could not cleanly backport this to |
|
Sorry @frostbyte134 and @gvanrossum, I had trouble checking out the |
|
If you want to try manually backporting these, please go ahead. |
…open_connection raises (pythonGH-95739) Break reference cycles to resolve memory leak, by removing local exception and future instances from the frame. (cherry picked from commit 995f617) Co-authored-by: Dong Uk, Kang <nailbrainz@gmail.com>
…open_connection raises (pythonGH-95739) Break reference cycles to resolve memory leak, by removing local exception and future instances from the frame. (cherry picked from commit 995f617) Co-authored-by: Dong Uk, Kang <nailbrainz@gmail.com>
|
GH-99721 is a backport of this pull request to the 3.11 branch. |
|
GH-99722 is a backport of this pull request to the 3.10 branch. |
|
@gvanrossum I just created 2 manual backport PRs to 3.10 and 3.11. Thank you for the review and fix! |
Break reference cycles to resolve #88863 by removing local exception and future (which has exception as its member var) instances from the frame. I believe those changes will not have bad effects, as they are just removing local variables which are not used anymore.
Checked in Windows 10/Mac Monterey/Centos 7.9