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

gh-111499: Fix PYTHONMALLOCSTATS at Python exit #120021

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Jun 4, 2024

Call _PyObject_DebugMallocStats() earlier in Py_FinalizeEx(), before the interpreter is deleted.

Call _PyObject_DebugMallocStats() earlier in Py_FinalizeEx(), before
the interpreter is deleted.
@vstinner vstinner added needs backport to 3.13 bugs and security fixes needs backport to 3.12 bug and security fixes labels Jun 4, 2024
@vstinner vstinner merged commit 5a1205b into python:main Jun 4, 2024
38 checks passed
@vstinner vstinner deleted the fix_malloc_stats branch June 4, 2024 09:39
@miss-islington-app
Copy link

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 4, 2024
Call _PyObject_DebugMallocStats() earlier in Py_FinalizeEx(), before
the interpreter is deleted.
(cherry picked from commit 5a1205b)

Co-authored-by: Victor Stinner <[email protected]>
@miss-islington-app
Copy link

Sorry, @vstinner, I could not cleanly backport this to 3.12 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 5a1205b641df133932ed4c65b9a4ff5724e89963 3.12

@bedevere-app
Copy link

bedevere-app bot commented Jun 4, 2024

GH-120022 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Jun 4, 2024
@bedevere-app
Copy link

bedevere-app bot commented Jun 4, 2024

GH-120023 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.12 bug and security fixes label Jun 4, 2024
vstinner added a commit to vstinner/cpython that referenced this pull request Jun 4, 2024
Call _PyObject_DebugMallocStats() earlier in Py_FinalizeEx(), before
the interpreter is deleted.

(cherry picked from commit 5a1205b)
vstinner added a commit that referenced this pull request Jun 4, 2024
…0023)

gh-111499: Fix PYTHONMALLOCSTATS at Python exit (#120021)

Call _PyObject_DebugMallocStats() earlier in Py_FinalizeEx(), before
the interpreter is deleted.

(cherry picked from commit 5a1205b)
vstinner added a commit that referenced this pull request Jun 4, 2024
…120022)

gh-111499: Fix PYTHONMALLOCSTATS at Python exit (GH-120021)

Call _PyObject_DebugMallocStats() earlier in Py_FinalizeEx(), before
the interpreter is deleted.
(cherry picked from commit 5a1205b)

Co-authored-by: Victor Stinner <[email protected]>
barneygale pushed a commit to barneygale/cpython that referenced this pull request Jun 5, 2024
Call _PyObject_DebugMallocStats() earlier in Py_FinalizeEx(), before
the interpreter is deleted.
noahbkim pushed a commit to hudson-trading/cpython that referenced this pull request Jul 11, 2024
Call _PyObject_DebugMallocStats() earlier in Py_FinalizeEx(), before
the interpreter is deleted.
estyxx pushed a commit to estyxx/cpython that referenced this pull request Jul 17, 2024
Call _PyObject_DebugMallocStats() earlier in Py_FinalizeEx(), before
the interpreter is deleted.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant