gh-134381: Improve thread safety in _PyThread_AfterFork by preserving not-started handles#134514
gh-134381: Improve thread safety in _PyThread_AfterFork by preserving not-started handles#134514colesbury merged 8 commits intopython:mainfrom
Conversation
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
ZeroIntensity
left a comment
There was a problem hiding this comment.
Could you add a test for this? Something like the repro in the issue is probably fine.
Misc/NEWS.d/next/Core_and_Builtins/2025-05-22-14-48-19.gh-issue-134381.2BXhth.rst
Outdated
Show resolved
Hide resolved
I did add a similar test case, but not sure if that's good enough to cover the issue similar to the issue mentioned. Please take a review. |
colesbury
left a comment
There was a problem hiding this comment.
Tests looks good. Some comments about how to structure it in the multiprocessing test suite below.
colesbury
left a comment
There was a problem hiding this comment.
Thanks for the fix, LGTM
|
🤖 New build scheduled with the buildbot fleet by @colesbury for commit ca06d61 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F134514%2Fmerge If you want to schedule another build, you need to add the 🔨 test-with-refleak-buildbots label again. |
ZeroIntensity
left a comment
There was a problem hiding this comment.
Tiny little formatting suggestion.
|
Thanks @zangjiucheng for the PR, and @colesbury for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
…d after fork (pythongh-134514) (cherry picked from commit 9a2346d) Co-authored-by: Jiucheng(Oliver) <git.jiucheng@gmail.com>
…d after fork (pythongh-134514) (cherry picked from commit 9a2346d) Co-authored-by: Jiucheng(Oliver) <git.jiucheng@gmail.com>
|
GH-134596 is a backport of this pull request to the 3.14 branch. |
|
GH-134597 is a backport of this pull request to the 3.13 branch. |
Uh oh!
There was an error while loading. Please reload this page.