Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34k
gh-111968: Refactor _PyXXX_Fini to integrate with _PyObject_ClearFreeLists#114899
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
Uh oh!
There was an error while loading. Please reload this page.
Conversation
corona10 commented Feb 2, 2024 • edited by bedevere-app bot
Loading Uh oh!
There was an error while loading. Please reload this page.
edited by bedevere-app bot
Uh oh!
There was an error while loading. Please reload this page.
corona10 commented Feb 2, 2024 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
Addressed by @ericsnowcurrently 's and @colesbury 's review from #111968 (comment) |
colesbury left a comment
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.
This looks good to me, although I'd probably name PySlice_ClearCache like the other freelist clearing functions for consistency.
Uh oh!
There was an error while loading. Please reload this page.
ericsnowcurrently left a comment
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.
Thanks for doing this. It mostly looks okay to me. There are just a few small things I'd like you to consider.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
When you're done making the requested changes, leave the comment: And if you don't make the requested changes, you will be put in the comfy chair! |
| struct _Py_object_stack_state object_stacks; | ||
| } _PyFreeListState; | ||
| extern void _PyObject_ClearFreeLists(_PyFreeListState *state, int is_finalization); |
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.
Since this API is not a domain-specific API, I located all ClearFreeList API into here :)
corona10 commented Feb 3, 2024
I have made the requested changes; please review again |
corona10 commented Feb 3, 2024
As I commented before, we need some header cleanup, but I will do it as a separate PR since it affected a lot of codes, including |
corona10 commented Feb 8, 2024
@ericsnowcurrently gentle ping |
ericsnowcurrently left a comment
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
--disable-gilbuilds #111968