Skip to content
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-125174: Make immortality "sticky" #131184

Merged
merged 3 commits into from
Mar 13, 2025

Conversation

markshannon
Copy link
Member

@markshannon markshannon commented Mar 13, 2025

Make immortality "sticky" by increasing the threshold for immortality in increfs, but leaving it the same for decrefs.

This way, no object will ever see more decrefs than increfs. Immortal objects may see more increfs than decrefs, but that's not a problem.

Performance is neutral.

@markshannon markshannon merged commit 3a91ee9 into python:main Mar 13, 2025
45 checks passed
@encukou
Copy link
Member

encukou commented Mar 14, 2025

This broke refleak buildbots.

markshannon added a commit to faster-cpython/cpython that referenced this pull request Mar 14, 2025
hugovk pushed a commit that referenced this pull request Mar 14, 2025
Revert "GH-125174: Make immortality "sticky" (GH-131184)"

This reverts commit 3a91ee9.
plashchynski pushed a commit to plashchynski/cpython that referenced this pull request Mar 17, 2025
plashchynski pushed a commit to plashchynski/cpython that referenced this pull request Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants