Skip to content
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-46417: Call _PyDebug_PrintTotalRefs() later #30744

Merged
merged 1 commit into from
Jan 21, 2022
Merged

bpo-46417: Call _PyDebug_PrintTotalRefs() later #30744

merged 1 commit into from
Jan 21, 2022

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Jan 21, 2022

"python -X showrefcount" now shows the total reference count after
clearing and destroyed the main Python interpreter. Previously, it
was shown before.

Py_FinalizeEx() now calls _PyDebug_PrintTotalRefs() after
finalize_interp_delete().

https://bugs.python.org/issue46417

"python -X showrefcount" now shows the total reference count after
clearing and destroyed the main Python interpreter. Previously, it
was shown before.

Py_FinalizeEx() now calls _PyDebug_PrintTotalRefs() after
finalize_interp_delete().
@vstinner
Copy link
Member Author

vstinner commented Jan 21, 2022

Measurement of bpo-1635741 progress using this change (to be able to compare Python versions) on the ./python -I -X showrefcount -c pass command:

We are getting closer to 0 :-)

@vstinner vstinner merged commit ea38e43 into python:main Jan 21, 2022
@vstinner vstinner deleted the showrefcount branch January 21, 2022 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants