FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-127716: make memoryview thread-safe in free-threaded build by nascheme · Pull Request #156248 · python/cpython · GitHub

/ cpython Public

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 commented Aug 23, 2026
edited by bedevere-app Bot
Loading

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.

read-the-docs-community Bot commented Aug 23, 2026
edited
Loading

Copy link
Copy Markdown

weixlu commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Hi, thanks for the thorough fix! I read the code and it looks like all operations of the counters are well handled, so I'll close my PR.

Also, I checkout your branch and run the reproducers from #127716 and #155606. Both issues appear to be resolved.

Co-authored-by: ayaangazali <ayaangazali.work@gmail.com>
Co-authored-by: Lu Xiaowei <weixlu420302@gmail.com>
nascheme force-pushed the gh-127716-memoryview-thread-safe branch from 4269e2d to 8fa2daf Compare August 25, 2026 16:24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL