-
-
Notifications
You must be signed in to change notification settings - Fork 32k
gh-77894: Fix a crash when the GC breaks a loop containing a memoryview #123898
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-77894: Fix a crash when the GC breaks a loop containing a memoryview #123898
Conversation
…moryview Now a memoryview object can only be cleared if there are no buffers that refer it.
3823a20
to
4e7d5c2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Ah, test_pickle fails:
|
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
…moryview (pythonGH-123898) Now a memoryview object can only be cleared if there are no buffers that refer it. (cherry picked from commit a1dbf2e) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Sorry, @serhiy-storchaka, I could not cleanly backport this to
|
GH-123936 is a backport of this pull request to the 3.13 branch. |
…ng a memoryview (pythonGH-123898) Now a memoryview object can only be cleared if there are no buffers that refer it. (cherry picked from commit a1dbf2e) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
GH-123937 is a backport of this pull request to the 3.12 branch. |
Now a memoryview object can only be cleared if there are no buffers that refer it.