Repository navigation
gh-152254: Fix a crash in PyObject_ClearManagedDict under memory pressure - #152255
Conversation
|
@vstinner can you please take a look? :) |
|
This PR is stale because it has been open for 90 days with no activity. |
vstinner
left a comment
There was a problem hiding this comment.
Would it be possible to write a test to test this code path? See with support.inject_memory_error_cm():.
|
I think that it would be rather hard to do :( So, instead I added Before: After: all tests pass 🎉 |
1b2ef1e to
d2e2e46
Compare
vstinner
left a comment
There was a problem hiding this comment.
LGTM. With some minor comments suggestions :-)
Co-authored-by: Victor Stinner <vstinner@python.org>
|
Thanks! Merging :) |
|
Thanks @sobolevn for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15. |
|
Sorry, @sobolevn, I could not cleanly backport this to Please backport manually with cherry_picker, see the devguide for more information. |
|
GH-162040 is a backport of this pull request to the 3.15 branch. |
|
GH-162042 is a backport of this pull request to the 3.14 branch. |
PyObject_ClearManagedDicton Free Threading #152254