-
Notifications
You must be signed in to change notification settings - Fork 2.2k
feat: support for sub-interpreters #5564
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
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
aa81dd1
Allow per-interpreter internals/local_internals
b-pass 2bb9515
Significant rewrite to avoid using thread_locals as much as possible.
b-pass 50f1645
Add a test for per-interpreter GIL
b-pass 283602b
Fix for nonconforming std::atomic constructors on some compilers
b-pass 8313508
style: pre-commit fixes
pre-commit-ci[bot] dfd53ec
Fix initializer to make MSVC happy.
b-pass 193f93c
Switch to gil_scoped_acquire_simple, get rid of old copy of it from i…
b-pass 981ea37
Use the PyThreadState's interp member rather than the thread state it…
b-pass a547a1a
Be more explicit about the type of the internalspp
b-pass 0707fa4
Suggested renamings and rewordings
b-pass e6ff3c4
Rename find_internals_pp and change it to take in the state dict refe…
b-pass 6add93a
Use the old raise_from instead of pybind11_fail
b-pass 80df0a7
Move most of the internals initialization into its constructor.
b-pass d0baf27
Move round_up_to_next_pow2 function upwards
b-pass 2d774be
Remove redundant forward decl
b-pass df18334
Add a python-driven subinterpreter test
b-pass c8f43ec
Disable the python subinterpreter test on emscripten
b-pass 3a12e10
Switch the internals pointer pointer to a unique_ptr pointer
b-pass 46e609f
Spelling
b-pass c790bfa
Fix clang-tidy warning, compare pointer to nullptr
b-pass 427ea25
Rename get_interpreter_counter to get_num_interpreters_seen
b-pass 048dd04
Try simplifying the test's cmake set_target_properties
b-pass 82dda79
Replace mod_* tags with a single tag w/enum
b-pass eb460c0
Add a test for shared-GIL (legacy) subinterpreters
b-pass d18e03e
Update test to work around differences in the various versions of int…
b-pass 45f35c6
Fix unused parameter
b-pass 0550a1b
Rename tests and associated test modules.
b-pass dafeaec
Switch get_internals_pp to a template function
b-pass 7576050
Rename curtstate to cur_tstate
b-pass 789d231
refactor: use simpler names
henryiii 0b73706
style: pre-commit fixes
pre-commit-ci[bot] 3036f9f
fix: return class, not enum
henryiii 22968e9
Have to join these threads to make sure they are totally done before …
b-pass 89e9599
Wrap module_def initialization in a static so it only happens once.
b-pass 81f9ac9
style: pre-commit fixes
pre-commit-ci[bot] 5a8df06
Merge branch 'master' into subinterpreters
rwgk 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI:
PYBIND11_HAS_SUBINTERPRETER_SUPPORT
on Python 3.12d #5687