KEMBAR78
GH-125174: Make immortality "sticky" by markshannon · Pull Request #131184 · python/cpython · GitHub
Skip to content

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
seehwan pushed a commit to seehwan/cpython that referenced this pull request Apr 16, 2025
seehwan pushed a commit to seehwan/cpython that referenced this pull request Apr 16, 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