]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-148189: Fix miscalculation of type-specific free list memory use (#148190)
authorMazin Sharaf <mazinsharaf@icloud.com>
Sun, 3 May 2026 03:03:13 +0000 (13:03 +1000)
committerGitHub <noreply@github.com>
Sun, 3 May 2026 03:03:13 +0000 (22:03 -0500)
commit1fc2b38d63170dd065efc2bc60e861f32c033b17
tree800e5edfab8cb5b31437d1f0763f7daaf376d040
parentc1940bcfc8a80d0d66f3f7f03e776d0d23ebb59b
GH-148189: Fix miscalculation of  type-specific free list memory use (#148190)

* Fix calculation of PyListObject size in allocator

* Fix size calculation in _PyDict_DebugMallocStats

* Fix memory size calculation in tupleobject.c

Adjusted memory calculation for PyTupleObject freelist entries.

* Revert in tupleobject.c

Removed unnecessary comment regarding memory calculation and the memory calculation itself.

* ðŸ“œðŸ¤– Added by blurb_it.

* Update tupleobject.c

---------

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Misc/NEWS.d/next/Core_and_Builtins/2026-04-08-02-49-07.gh-issue-148189.0KpXID.rst [new file with mode: 0644]
Objects/dictobject.c
Objects/listobject.c
Objects/tupleobject.c