Skip to content

GH-117760: Streamline the trashcan mechanism #117763

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
merged 5 commits into from
Apr 17, 2024

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
@markshannon markshannon merged commit 147cd05 into python:main Apr 17, 2024
36 checks passed
diegorusso pushed a commit to diegorusso/cpython that referenced this pull request Apr 17, 2024
@markshannon markshannon deleted the faster-trashcan branch August 6, 2024 10:16
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