]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-142183: Cache one datachunk per tstate to prevent alloc/dealloc thrashing (#145789)
authorT. Wouters <thomas@python.org>
Wed, 11 Mar 2026 14:46:16 +0000 (15:46 +0100)
committerGitHub <noreply@github.com>
Wed, 11 Mar 2026 14:46:16 +0000 (15:46 +0100)
commit706fd4ec08acbf1b1def3630017ebe55d224adfa
treea0a309564fe30004d8ae1af6c88e7ab50be7a60b
parent4722202a1a81974089801e6173d269836b6a074f
gh-142183: Cache one datachunk per tstate to prevent alloc/dealloc thrashing (#145789)

Cache one datachunk per tstate to prevent alloc/dealloc thrashing when repeatedly hitting the same call depth at exactly the wrong boundary.

---------

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Include/cpython/pystate.h
Misc/NEWS.d/next/Core_and_Builtins/2026-03-11-00-13-59.gh-issue-142183.2iVhJH.rst [new file with mode: 0644]
Python/pystate.c