Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[3.11] gh-104372: Drop the GIL around the vfork() call. (#104782)#104958

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
gpshead merged 2 commits intopython:3.11fromgpshead:backport-d086792-3.11
Sep 1, 2023

Conversation

gpshead
Copy link
Member

@gpsheadgpshead commentedMay 26, 2023
edited by github-actionsbot
Loading

On Linux where thesubprocess module can use thevfork syscall for faster spawning, prevent the parent process from blocking other threads by dropping the GIL while it waits for the vfork'ed child processexec outcome. This prevents spawning a binary from a slow filesystem from blocking the rest of the application.

Fixes#104372.

(cherry picked from commitd086792)


📚 Documentation preview 📚:https://cpython-previews--104958.org.readthedocs.build/

On Linux where the `subprocess` module can use the `vfork` syscall forfaster spawning, prevent the parent process from blocking other threadsby dropping the GIL while it waits for the vfork'ed child process `exec`outcome.  This prevents spawning a binary from a slow filesystem fromblocking the rest of the application.Fixespython#104372.(cherry picked from commitd086792)
@gpshead
Copy link
MemberAuthor

I want to let this bake in some 3.12beta releases for a while before applying it to a stable release. thus "draft".

@hauntsaninja
Copy link
Contributor

3.12 is now at RC stage; should we merge to 3.11?

gpshead reacted with thumbs up emojigpshead reacted with eyes emoji

@gpsheadgpshead marked this pull request as ready for reviewSeptember 1, 2023 08:26
@gpsheadgpsheadenabled auto-merge (squash)September 1, 2023 08:26
@gpsheadgpshead merged commit6ba1234 intopython:3.11Sep 1, 2023
@gpsheadgpshead deleted the backport-d086792-3.11 branchSeptember 4, 2023 03:28
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees

@gpsheadgpshead

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@gpshead@hauntsaninja@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp