-
-
Notifications
You must be signed in to change notification settings - Fork 32k
bpo-46753: Add the empty tuple to the _PyRuntimeState.global_objects. #31345
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
ericsnowcurrently
merged 28 commits into
python:main
from
ericsnowcurrently:global-objects-empty-tuple
Feb 28, 2022
Merged
Changes from 15 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
7fef0be
Add the empty tuple to the _PyRuntimeState.global_objects.
ericsnowcurrently 9f0aa44
Use the global empty tuple.
ericsnowcurrently 21ce6aa
Merge branch 'main' into global-objects-empty-tuple
ericsnowcurrently ba1b4cc
Leave space for the empty GC head.
ericsnowcurrently 67ebfd6
Revert "Leave space for the empty GC head."
ericsnowcurrently df35d70
Add PyTuple_Type.tp_is_gc().
ericsnowcurrently 24ca51c
Inline tuple_get_empty().
ericsnowcurrently 55b8eb0
Switch back to allocated an unused PyGC_Head for the empty tuple.
ericsnowcurrently ab721be
Skip tupledealloc() if it's the empty tuple.
ericsnowcurrently 7b89727
Return the empty tuple when resizing to 0.
ericsnowcurrently 2fedc9c
Use the empty tuple when appropriate in deepfreeze.c.
ericsnowcurrently dd0a1a2
Disassociate the empty tuple from the freelist logic.
ericsnowcurrently 5e729d8
Merge branch 'main' into global-objects-empty-tuple
ericsnowcurrently deddeb5
Allow deallocating an empty tuple if a subclass.
ericsnowcurrently efed1d1
Return a new reference from tuple_get_empty().
ericsnowcurrently 923c8cc
Add _PyGC_Head_UNUSED.
ericsnowcurrently 631d12b
Clean up tupledealloc() a little.
ericsnowcurrently 3264e8d
8000
Drop get_tuple_state().
ericsnowcurrently 9dfee07
Consolidate the freelist code.
ericsnowcurrently e272804
Merge branch 'main' into global-objects-empty-tuple
ericsnowcurrently 597f1bd
Do not use _Py_NewRef().
ericsnowcurrently fa2edad
Calling tupledealloc() on the empty singleton is an error.
ericsnowcurrently f4acc36
Tweak _PyTuple_Resize().
ericsnowcurrently 460ae61
Roll back the global singleton part.
ericsnowcurrently c163aca
Re-apply the global singleton part.
ericsnowcurrently 4ac3d66
Make sure struct _Py_tuple_state is never empty.
ericsnowcurrently 11a9311
Clarify about freelists a little.
ericsnowcurrently fdc82d2
Fix a preprocessor condition.
ericsnowcurrently File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
8000
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
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.
Suggestio
2FDB
ns 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.