KEMBAR78
GH-117760: Streamline the trashcan mechanism by markshannon · Pull Request #117763 · python/cpython · GitHub
Skip to content

Conversation

@markshannon
Copy link
Member

@markshannon markshannon commented Apr 11, 2024

@markshannon markshannon added performance Performance or resource usage interpreter-core (Objects, Python, Grammar, and Parser dirs) 3.13 bugs and security fixes labels Apr 11, 2024
@markshannon markshannon requested a review from iritkatriel April 16, 2024 10:47
Objects/object.c Outdated
++trash->delete_nesting;
while (trash->delete_later) {
PyObject *op = trash->delete_later;
assert(tstate->c_recursion_remaining > 100);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
assert(tstate->c_recursion_remaining > 100);
assert(tstate->c_recursion_remaining > Py_TRASHCAN_HEADROOM*2);

@markshannon markshannon requested a review from iritkatriel April 16, 2024 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.13 bugs and security fixes interpreter-core (Objects, Python, Grammar, and Parser dirs) performance Performance or resource usage skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants