Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
gh-100227: Make the Global PyModuleDef Cache Safe for Isolated Interpreters#102938
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
Closed
ericsnowcurrently wants to merge23 commits intopython:mainfromericsnowcurrently:extensions-dict-owned-by-main-interpreter
Uh oh!
There was an error while loading.Please reload this page.
Closed
Changes from1 commit
Commits
Show all changes
23 commits Select commitHold shift + click to select a range
546b934 Factor out add_threadstate().
ericsnowcurrently0bcd136 Add _PyThreadState_InitDetached().
ericsnowcurrently35d5310 Add _PyThreadState_ClearDetached().
ericsnowcurrentlycba9e34 Add _PyRuntime.cached_objects.main_tstate.
ericsnowcurrently3b1bb8b Add _Py_AcquireGlobalObjectsState() and _Py_ReleaseGlobalObjectsState().
ericsnowcurrentlyeb42aa1 Add _Py_AddToGlobalDict().
ericsnowcurrently4e9da2d Drop _Py_AcquireGlobalObjectsState() and _Py_ReleaseGlobalObjectsStat…
ericsnowcurrently6216207 Add acquire_global_objects_lock() and release_global_objects_lock().
ericsnowcurrently3c007c0 Add some TODO comments.
ericsnowcurrently7d95514 Factor out store_interned().
ericsnowcurrently5c20b84 Store a thread state to use just for interned strings.
ericsnowcurrentlya3ae02a Always use the main interpreter when possibly resizing the interned d…
ericsnowcurrentlyd5fbc37 Use _PyRuntime.cached_objects.main_tstate instead.
ericsnowcurrently459325f Add _PyThreadState_IsBound() and _PyThreadState_Unbind().
ericsnowcurrently4f25244 Make sure the one-off tstate is bound before using it.
ericsnowcurrentlye68535a Use _Py_AcquireGlobalObjectsState() in store_interned().
ericsnowcurrently22753b3 Use _Py_AddToGlobalDict().
ericsnowcurrently5c7bfd7 Move the extensions dict to _PyRuntime.cached_objects.
ericsnowcurrentlyf1a33ce Add _Py_GetFromGlobalDict().
ericsnowcurrently10e6d69 Add _Py_PopFromGlobalDict().
ericsnowcurrently7dbae68 Adjust _Py_AddToGlobalDict().
ericsnowcurrently3e08c1f Use _Py_PopFromGlobalDict() in unicode_dealloc().
ericsnowcurrently1039a60 Use the global dict API in import.c.
ericsnowcurrentlyFile 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
Make sure the one-off tstate is bound before using it.
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
commit4f25244cd227b7b64a18f26a688f0ab0745c2d5d
There are no files selected for viewing
7 changes: 7 additions & 0 deletionsObjects/unicodeobject.c
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.