Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

GH-125174: Make immortality "sticky"#131184

Merged
markshannon merged 3 commits into
python:mainpython/cpython:mainfrom
faster-cpython:immortal-stickinessfaster-cpython/cpython:immortal-stickinessCopy head branch name to clipboard
Mar 13, 2025
Merged

GH-125174: Make immortality "sticky"#131184
markshannon merged 3 commits into
python:mainpython/cpython:mainfrom
faster-cpython:immortal-stickinessfaster-cpython/cpython:immortal-stickinessCopy head branch name to clipboard

Conversation

@markshannon

@markshannon markshannon commented Mar 13, 2025

Copy link
Copy Markdown
Member

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.

@encukou

encukou commented Mar 14, 2025

Copy link
Copy Markdown
Member

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.