-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
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
bpo-38962: Fix reference leak in the per-subinterpreter gc #17457
Conversation
78add69
to
d0de63a
Compare
I'm not super convinced about this PR, but indeed it fixes the reference leaks in test__xxsubinterpreters (when all other PRs in https://bugs.python.org/issue38962 are applied first): ❯ ./python -m test test__xxsubinterpreters -R : == Tests result: SUCCESS == 1 test OK. Total duration: 17.6 sec |
d0de63a
to
8f036d2
Compare
@vstinner I have modified the PR to trigger the collection only on sub interpreters. Can you check it out? |
0e8f8c5
to
4f9a89b
Compare
4f9a89b
to
487863c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
As I wrote, I'm not fully satisfied by calling _PyGC_CollectNoFail() after PyInterpreterState_Clear() because of the risk of bugs in objects finalizers, but we cannot fix all Python finalization issues at once. Let's unblock the buildbots, and only later investigate for a better design.
@pablogsal: Status check is done, and it's a success ✅ . |
https://bugs.python.org/issue38962
Automerge-Triggered-By: @pablogsal