]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-115891: Fix debug byte filling in free-threaded build (#116018)
authorSam Gross <colesbury@gmail.com>
Wed, 28 Feb 2024 20:50:09 +0000 (15:50 -0500)
committerGitHub <noreply@github.com>
Wed, 28 Feb 2024 20:50:09 +0000 (12:50 -0800)
commit75c6c05fea212330f4b0259602ffae1b2cb91be3
tree7802b594dc136dccba6b5b0dfa921813cbbadf91
parentdf5212df6c6f08308c68de4b3ed8a1b51ac6334b
gh-115891: Fix debug byte filling in free-threaded build (#116018)

The previous code had two bugs. First, the debug offset in the mimalloc
heap includes the two pymalloc debug words, but the pointer passed to
fill_mem_debug does not include them. Second, the current object heap is
correct source for allocations, but not deallocations.
Objects/obmalloc.c