GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — gh-99113: A Per-Interpreter GIL! by ericsnowcurrently · Pull Request #104209 · python/cpython

Conversation

@ericsnowcurrently

@ericsnowcurrently ericsnowcurrently commented May 5, 2023 •
edited by bedevere-bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

This is the culmination of PEP 684 (and of my 8-year long multi-core Python project)!

Each subinterpreter may now be created with its own GIL (via Py_NewInterpreterFromConfig()). If not so configured then the interpreter will share with the main interpreter--the status quo since the subinterpreters were added decades ago. The main interpreter always has its own GIL and subinterpreters from Py_NewInterpreter() will always share with the main interpreter.

(FYI, I've split up the original gh-99114 into multiple PRs, with this one being the final one in the chain.)

  • Issue: Implement PEP 684: A Per-Interpreter GIL #99113

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Eclips4 reacted with rocket emoji
All reactions
  • 🚀 1 reaction
ericsnowcurrently added 17 commits September 12, 2022 12:55
@ericsnowcurrently
Add a comment.
2aad06a
@ericsnowcurrently
_gil_runtime_state -> _gil_state.
e55fbdd
@ericsnowcurrently
Pass PyInterpreterState to _PyEval_ThreadInitialized().
711b19d
@ericsnowcurrently
runtime->main -> runtime->interpreters.main.
dba4460
@ericsnowcurrently
Pass PyInterpreterState to _PyEval_InitState().
5342672
@ericsnowcurrently
Label some struct fields.
f2361d7
@ericsnowcurrently
Add _get_gil().
adc09a0
@ericsnowcurrently
Pass the runtime to _PyEval_InitRuntimeState().
7014bff
@ericsnowcurrently
Add some comments.
2026034
@ericsnowcurrently
Add _GET_OWN_GIL().
3ce9695
@ericsnowcurrently
Pass PyInterpreterState to _PyEval_FiniState().
57ca2fa
@ericsnowcurrently
Call _gil_initialize() in _PyEval_InitState().
936c86d
@ericsnowcurrently
Drop _PyEval_InitRuntimeState().
66ca3e4
@ericsnowcurrently
Move the GIL to PyInterpreterState (but still share).
6d09320
@ericsnowcurrently
Keep sharing the GIL.
5075992
@ericsnowcurrently
Check for GIL ownership.
f39c883
@ericsnowcurrently
Stop sharing the GIL if configured as "isolated".
ae2eb3c
@bedevere-bot bedevere-bot mentioned this pull request May 5, 2023
Implement PEP 684: A Per-Interpreter GIL #99113
Closed
@ericsnowcurrently

ericsnowcurrently commented May 5, 2023

Copy link
Copy Markdown
Member Author

oops, this is the wrong branch

Eclips4 and itamaro reacted with laugh emoji
All reactions
  • 😄 2 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ericsnowcurrently ericsnowcurrently closed this May 5, 2023
@ericsnowcurrently
ericsnowcurrently deleted the per-interpreter-gil-old branch May 5, 2023 18:00
@ericsnowcurrently
ericsnowcurrently restored the per-interpreter-gil-old branch May 5, 2023 18:00
@ericsnowcurrently
ericsnowcurrently deleted the per-interpreter-gil-old branch May 5, 2023 18:00
@ericsnowcurrently
ericsnowcurrently restored the per-interpreter-gil-old branch May 5, 2023 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@ZeroIntensity ZeroIntensity Awaiting requested review from ZeroIntensity ZeroIntensity will be requested when the pull request is marked ready for review ZeroIntensity is a code owner
@FFY00 FFY00 Awaiting requested review from FFY00 FFY00 will be requested when the pull request is marked ready for review FFY00 is a code owner

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@ericsnowcurrently
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.