Skip to content

gh-142048: Fix quadratically increasing GC delays#142051

Merged
colesbury merged 8 commits intopython:mainfrom
kevmo314:fix-gc-alloc-count-negative
Dec 2, 2025
Merged

gh-142048: Fix quadratically increasing GC delays#142051
colesbury merged 8 commits intopython:mainfrom
kevmo314:fix-gc-alloc-count-negative

Conversation

@kevmo314
Copy link
Contributor

@kevmo314 kevmo314 commented Nov 28, 2025

Fixes quadratically increasing GC delays in the free-threaded build. This is done by updating the local to global allocation count propagation to require the global count to be non-negative. This matches the existing behavior in non-free-threaded gc.c. Additionally, adds a flush that I found was causing allocations to be lost.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants