-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-102304: Move the Total Refcount to PyInterpreterState #102545
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-102304: Move the Total Refcount to PyInterpreterState #102545
Conversation
b3bb5e5
to
668eb4c
Compare
FYI, I'm probably going to add some code to preserve the per-interpreter total when each subinterpreter is destroyed, so any leaks may be handled appropriately when the runtime is finalized. I may also report the per-interpreter total at interpreter finalization. We'll see. |
780e7ec
to
68da9da
Compare
68da9da
to
f64202d
Compare
🤖 New build scheduled with the buildbot fleet by @ericsnowcurrently for commit 475db68 🤖 If you want to schedule another build, you need to add the 🔨 test-with-refleak-buildbots label again. |
The refleak buildbots all look good. |
…ngh-102545) Moving it valuable with a per-interpreter GIL. However, it is also useful without one, since it allows us to identify refleaks within a single interpreter or where references are escaping an interpreter. This becomes more important as we move the obmalloc state to PyInterpreterState. python#102304
…ngh-102545) Moving it valuable with a per-interpreter GIL. However, it is also useful without one, since it allows us to identify refleaks within a single interpreter or where references are escaping an interpreter. This becomes more important as we move the obmalloc state to PyInterpreterState. python#102304
Moving it valuable with a per-interpreter GIL. However, it is also useful without one, since it allows us to identify refleaks within a single interpreter or where references are escaping an interpreter. This becomes more important as we move the obmalloc state to
PyInterpreterState
.(This PR is basically a single commit on top of gh-102543.)