◐ Shell
reader mode source ↗
Skip to content

bpo-36854: Fix refleak in subinterpreter#17331

Merged
vstinner merged 2 commits into
python:masterfrom
vstinner:finalize_interp_clear2
Nov 22, 2019
Merged

bpo-36854: Fix refleak in subinterpreter#17331
vstinner merged 2 commits into
python:masterfrom
vstinner:finalize_interp_clear2

Conversation

@vstinner

@vstinner vstinner commented Nov 21, 2019

Copy link
Copy Markdown
Member

finalize_interp_clear() now explicitly clears the codec registry and
then trigger a GC collection to clear all references.

https://bugs.python.org/issue36854

finalize_interp_clear() now explicitly clears the codec registry and
then trigger a GC collection to clear all references.
@vstinner

Copy link
Copy Markdown
Member Author

test_tracemalloc does crash while trying to free _Py_TrueStruct (Py_True). This object is supposed to be immortal, no?

@vstinner vstinner merged commit 310e2d2 into python:master Nov 22, 2019
@vstinner vstinner deleted the finalize_interp_clear2 branch November 22, 2019 09:58
jacobneiltaylor pushed a commit to jacobneiltaylor/cpython that referenced this pull request Dec 5, 2019
finalize_interp_clear() now explicitly clears the codec registry and
then trigger a GC collection to clear all references.
shihai1991 pushed a commit to shihai1991/cpython that referenced this pull request Jan 31, 2020
finalize_interp_clear() now explicitly clears the codec registry and
then trigger a GC collection to clear all references.
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.

4 participants