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.12] gh-104372: Drop the GIL around the vfork() call. (GH-104782)#104942

Merged
gpshead merged 1 commit intopython:3.12from
miss-islington:backport-d086792-3.12
May 25, 2023
Merged

[3.12] gh-104372: Drop the GIL around the vfork() call. (GH-104782)#104942
gpshead merged 1 commit intopython:3.12from
miss-islington:backport-d086792-3.12

Conversation

@miss-islington
Copy link
Contributor

@miss-islingtonmiss-islington commentedMay 25, 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.

FixesGH-104372.
(cherry picked from commitd086792)

Co-authored-by: Gregory P. Smithgps@python.org


📚 Documentation preview 📚:https://cpython-previews--104942.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.FixespythonGH-104372.(cherry picked from commitd086792)Co-authored-by: Gregory P. Smith <gps@python.org>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@gpsheadgpsheadAwaiting requested review from gpsheadgpshead is a code owner

Assignees

@gpsheadgpshead

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@miss-islington@gpshead@bedevere-bot

Comments


[8]ページ先頭

©2009-2026 Movatter.jp