make memoryview thread safe in free-threading
未关闭
还没有人认领这个 Issue。
interpreter-core
topic-free-threading
type-feature
- 主要语言
- Python
- 星标
- 77.2k
- 派生
- 36k
- PR 合并指标
- PR 指标待抓取
描述
memoryview is currently not safe against free-threading especially concurrent releasing the memoryviews. This issue track work to make it thread safe.
This is a follow-up to https://github.com/python/cpython/pull/127412#pullrequestreview-2472748568.
Linked PRs
- gh-154770
- gh-156248
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从后续 pull request 以及相关联的 PR gh-154770 和 gh-156248 开始,了解 memoryview 尚未完成的线程安全工作。检查并发释放是如何处理的,并验证 free-threading 不再允许不安全的并发释放。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- backend
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 20/100