-
-
Notifications
You must be signed in to change notification settings - Fork 33k
GH-138355: Remove trash_delete_later and trash_delete_nesting from _gc_runtime_state #138767
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
GH-138355: Remove trash_delete_later and trash_delete_nesting from _gc_runtime_state #138767
Conversation
They are internal fields. |
🤖 New build scheduled with the buildbot fleet by @sobolevn for commit dff746f 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F138767%2Fmerge If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again. |
It seems OK for all buildbots. |
Include/cpython/pystate.h
Outdated
unsigned long native_thread_id; | ||
|
||
/* List of objects that still need to be cleaned up, singly linked | ||
* via their gc headers' gc_next pointers. */ |
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.
You may mention _PyTrash_thread_deposit_object().
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.
@vstinner Please take a look.
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.
LGTM
Merged, thank you. |
|
|
Thanks all! |
Both fields are not used anymore. Instead, trashcan mechanism uses
tstate->delete_later
.trash_delete_later
andtrash_delete_nesting
fields in_gc_runtime_state
#138355