]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-77894: Fix a crash when the GC breaks a loop containing a memoryview (GH...
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 11 Sep 2024 09:32:39 +0000 (12:32 +0300)
committerGitHub <noreply@github.com>
Wed, 11 Sep 2024 09:32:39 +0000 (09:32 +0000)
commit90e5bd7ed2502ed5b1ee70f5937fe46441d1710b
tree2d7aee80cc7b4ab6df795337b84302c2f33d126b
parentc6ae90a63cb8b7bf3234d076f2d2e7ff4e26a085
[3.12] gh-77894: Fix a crash when the GC breaks a loop containing a memoryview (GH-123898) (GH-123937)

Now a memoryview object can only be cleared if there are no buffers
that refer it.
(cherry picked from commit a1dbf2ea69acc6ccee6292709af1dadd55c068be)
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