[3.14] gh-157377: Don't flush the thread-local allocation count in gc.get_count (GH-157381) by miss-islington · Pull Request #157506 · python/cpython · GitHub
Skip to content

[3.14] gh-157377: Don't flush the thread-local allocation count in gc.get_count (GH-157381) - #157506

Merged
ngoldbaum merged 1 commit into
python:3.14from
miss-islington:backport-c215919-3.14
Sep 14, 2026
Merged

ngoldbaum merged 1 commit into
python:3.14from
miss-islington:backport-c215919-3.14

Conversation

@miss-islington

Copy link
Copy Markdown
Contributor

Co-authored-by: Nathan Goldbaum nathan.goldbaum@gmail.com

…get_count (pythonGH-157381)

* pythongh-157377: Don't flush the thread-local allocation count in gc.get_count()

* pythongh-157377: clamp gc.get_count() return value at zero
(cherry picked from commit c215919)

Co-authored-by: Nathan Goldbaum <nathan.goldbaum@gmail.com>
@ngoldbaum
ngoldbaum enabled auto-merge (squash) September 14, 2026 16:59
@ngoldbaum
ngoldbaum merged commit 884302c into python:3.14 Sep 14, 2026
53 checks passed
@miss-islington
miss-islington deleted the backport-c215919-3.14 branch September 14, 2026 17:23
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.

2 participants