Skip to content

gh-127716: make memoryview thread-safe in free-threaded build - #156248

Draft
nascheme wants to merge 1 commit into
python:mainfrom
nascheme:gh-127716-memoryview-thread-safe
Draft

gh-127716: make memoryview thread-safe in free-threaded build#156248
nascheme wants to merge 1 commit into
python:mainfrom
nascheme:gh-127716-memoryview-thread-safe

Conversation

@nascheme

@nascheme nascheme commented Aug 23, 2026

Copy link
Copy Markdown
Member

This incorporates changes from gh-155882 and gh-154770. It goes further and ensures the underlying buffer remains "pinned" if a thread releases the memory view while other threads have in-flight operations on it.

Co-authored-by: ayaangazali <ayaangazali.work@gmail.com>
Co-authored-by: Lu Xiaowei <weixlu420302@gmail.com>
@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #34189518 | 📁 Comparing 4269e2d against main (b062727)

  🔍 Preview build  

2 files changed
± library/threadsafety.html
± whatsnew/changelog.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants