Skip to content

[3.14] gh-152254: Fix a crash in PyObject_ClearManagedDict under memory pressure (GH-152255) - #162042

Merged
sobolevn merged 3 commits into
python:3.14from
sobolevn:backport-369d8bc-3.14
Nov 15, 2026
Merged

sobolevn merged 3 commits into
python:3.14from
sobolevn:backport-369d8bc-3.14

Conversation

@sobolevn

@sobolevn sobolevn commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

…der memory pressure (pythonGH-152255)

(cherry picked from commit 369d8bc)

Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Victor Stinner <vstinner@python.org>
@sobolevn

Copy link
Copy Markdown
Member Author

I removed the test, because _testcapi.call_with_no_memory is not backported to 3.14 and without this API it is really hard to test this fix. Only the fix itself is left.

@sobolevn
sobolevn merged commit 542b4f4 into python:3.14 Nov 15, 2026
49 checks passed
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.

1 participant