]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-77894: Fix a crash when the GC breaks a loop containing a memoryview (GH-123898)
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 11 Sep 2024 09:05:46 +0000 (12:05 +0300)
committerGitHub <noreply@github.com>
Wed, 11 Sep 2024 09:05:46 +0000 (12:05 +0300)
commita1dbf2ea69acc6ccee6292709af1dadd55c068be
tree765c7c1124078aae4aa1b38bb9998d564f92ff52
parent00ffdf27367fb9aef247644a96f1a9ffb5be1efe
gh-77894: Fix a crash when the GC breaks a loop containing a memoryview (GH-123898)

Now a memoryview object can only be cleared if there are no buffers
that refer it.
Lib/test/pickletester.py
Lib/test/test_memoryview.py
Misc/NEWS.d/next/Core_and_Builtins/2024-09-10-13-27-16.gh-issue-77894.ZC-Olu.rst [new file with mode: 0644]
Objects/memoryobject.c