-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Fix concurrency consistency for internals_pp_manager under multiple-interpreters
#5947
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
b-pass
merged 22 commits into
pybind:master
from
XuehaiPan:fix-multiple-interpreters-concurrency
Dec 26, 2025
Merged
Changes from 13 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
5c7e1d7
Add per-interpreter storage for `gil_safe_call_once_and_store`
XuehaiPan 4ef8b0c
Disable thread local cache for `internals_pp_manager`
XuehaiPan aa1c3aa
Disable thread local cache for `internals_pp_manager` for multi-inter…
XuehaiPan cdd7d10
Merge remote-tracking branch 'upstream/master' into fix-multiple-inte…
XuehaiPan ec908c6
Use anonymous namespace to separate these type_ids from other tests w…
b-pass aeeb340
style: pre-commit fixes
pre-commit-ci[bot] 49952a8
Revert internals_pp_manager changes
b-pass f7a0e04
This is the crux of fix for the subinterpreter_before_main failure.
b-pass 3b54dcf
Continue to do the ensure in both places, there might be a reason it …
b-pass a567962
Change get_num_interpreters_seen to a boolean flag instead.
b-pass 857e4a5
Spelling typo
b-pass e1204b2
Work around older python versions, only need this check for newish ve…
b-pass 0ad3ec2
Add more comments for test case
XuehaiPan b2d82d6
Add more comments for test case
XuehaiPan 0a142b1
Stop traceback propagation
XuehaiPan 755839c
Re-enable subinterpreter support on ubuntu 3.14 builds
b-pass 8f29f8e
As suggested, don't use an anonymous namespace.
b-pass 3838ff1
Typo in test assert format string
b-pass ed20cfc
Use a more appropriate function name
XuehaiPan 3977e2d
Fix mod_per_interpreter_gil* output directory on Windows/MSVC
rwgk 8a5fdd3
Remove unneeded `pytest.importorskip`
XuehaiPan 70f9245
Remove comment
b-pass File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.