Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.3k
Implement PEP 788#133110
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
Draft
ZeroIntensity wants to merge67 commits intopython:mainChoose a base branch fromZeroIntensity:pep-788-impl
base:main
Could not load branches
Branch not found:{{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline, and old review comments may become outdated.
Uh oh!
There was an error while loading.Please reload this page.
Draft
Implement PEP 788#133110
Changes from1 commit
Commits
Show all changes
67 commits Select commitHold shift + click to select a range
1828b9a
Implement interpreter state reference counting.
ZeroIntensityd0895f9
Add a test for interpreter reference counts.
ZeroIntensity5c3ee8d
Add thread state daemon-ness that doesn't work yet.
ZeroIntensity7b9ac59
Add untested implementation of non-daemon native threads.
ZeroIntensity0868c15
Add a test for PyThreadState_SetDaemon().
ZeroIntensitye9ea644
Add untested implementation of Ensure()/Release() that probably doesn…
ZeroIntensity0ebdca4
Change some comments.
ZeroIntensity40989de
Add a test that I'm sure doesn't work.
ZeroIntensityd501f35
Use the interpreter's reference count and native thread countdown as …
ZeroIntensityc5ec89c
Fix the countdown decrement.
ZeroIntensity4e1f599
Remove unused variable.
ZeroIntensity3127a3f
Test for PyGILState_Ensure()
ZeroIntensity82b5b9f
Fix the test for the new reference counting.
ZeroIntensityfda9886
Add PyInterpreterState_Lookup()
ZeroIntensityf7723c0
Fix a few bugs and add a test.
ZeroIntensity62e9549
Add a test for PyThreadState_Ensure() across interpreters.
ZeroIntensitybc60630
Remove an artifact from old approach.
ZeroIntensity9d8d526
Fix test from earlier semantics.
ZeroIntensity54b0ce0
Remove 'daemonness' as a property of a thread.
ZeroIntensity5955de6
Add strong interpreter reference functions.
ZeroIntensity92cf906
Implement weak references.
ZeroIntensityb0d0673
Fix some thread safety issues regarding interpreter deletion.
ZeroIntensity0a15beb
Merge from main branch.
ZeroIntensity16d79de
Implement new version of PyThreadState_Ensure() and PyThreadState_Rel…
ZeroIntensityc2bffcd
Use the new APIs in the tests.
ZeroIntensity911c6b5
Fix _testcapi.
ZeroIntensityb84fa90
Fix the ensure counter.
ZeroIntensity9ccf6bd
Add the test to test_embed.
ZeroIntensity481caf5
Allow the wait to be interrupted by CTRL+C.
ZeroIntensity71e1aec
Print the error before bailing out.
ZeroIntensityd661578
Updates for the new proposal.
ZeroIntensity4249c5d
Bikeshedding.
ZeroIntensity71f2fd7
Apply suggestions from code review
ZeroIntensity03ccb38
Fix failing build.
ZeroIntensitybca65fb
Rename parameter.
ZeroIntensity510ade1
Fix formatting.
ZeroIntensity3971408
Add tstate check.
ZeroIntensity6c4c52b
Move to pycore_pystate.h
ZeroIntensity64920a8
Revert "Move to pycore_pystate.h"
ZeroIntensity05436f3
Use an exponential wait time for the event.
ZeroIntensity02bc2d7
Mark function as static.
ZeroIntensity03fa2af
Update fatal error message.
ZeroIntensityb955d85
Remove incorrect assertion.
ZeroIntensity5236700
Add a comment regarding PyMem_RawMalloc()
ZeroIntensitya277130
Add a comment.
ZeroIntensitydac0c1a
Update Include/cpython/pystate.h
ZeroIntensityab9e3b5
Merge branch 'pep-788-impl' of https://github.com/ZeroIntensity/cpyth…
ZeroIntensity79a1852
Move some tests around to prevent exposure of the private API.
ZeroIntensity47957b8
Move weakref test to internal C API.
ZeroIntensity771d7ed
Improve reference counting tests.
ZeroIntensity0c3c1c7
Remove dead function.
ZeroIntensity531928e
Add some more tests.
ZeroIntensity08a8af6
Remove unused variables.
ZeroIntensity02f93bc
Fix some thread state attachment problems.
ZeroIntensityd6c82bd
Only delete thread states created by PyThreadState_Ensure()
ZeroIntensity082fd69
Add a test for crossinterpreter ensures.
ZeroIntensity61f70ae
Add a test for weak interpreter references.
ZeroIntensityfa961e9
Fix concurrent shutdown races in PyGILState_Ensure().
ZeroIntensityea1da77
Add a test for PyInterpreterRef_Main().
ZeroIntensity6f19384
Use PyErr_FormatUnraisable to show signals.
ZeroIntensityb702da2
Fix a re-entrancy deadlock.
ZeroIntensity40e7e68
Remove stupid IDE imports.
ZeroIntensity96efc81
Merge branch 'main' of https://github.com/python/cpython into pep-788…
ZeroIntensityaf6f6fd
Merge branch 'pep-788-impl' of https://github.com/ZeroIntensity/cpyth…
ZeroIntensity2c52cdc
Fix interpreter reference count tests.
ZeroIntensity3ffe9d0
Merge branch 'main' of https://github.com/python/cpython into pep-788…
ZeroIntensity588364c
Add thread state references to PyThreadState_Ensure() and
ZeroIntensityFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
Add PyInterpreterState_Lookup()
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
commitfda9886edd26ed7a7e1946f5030cfe96bcbbe2a6
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
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.