]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-115491: Keep some fields valid across allocations (free-threading) (#115573)
authorSam Gross <colesbury@gmail.com>
Tue, 20 Feb 2024 15:36:40 +0000 (10:36 -0500)
committerGitHub <noreply@github.com>
Tue, 20 Feb 2024 15:36:40 +0000 (10:36 -0500)
commitcc82e33af978df793b83cefe4e25e07223a3a09e
treed3eea26833e8ffb71fe3b19dd45e54d0e9fe33f9
parentc0b0c2f2015fb27db4306109b2b3781eb2057c2b
gh-115491: Keep some fields valid across allocations (free-threading) (#115573)

This avoids filling the memory occupied by ob_tid, ob_ref_local, and
ob_ref_shared with debug bytes (e.g., 0xDD) in mimalloc in the
free-threaded build.
Include/internal/mimalloc/mimalloc/types.h
Objects/mimalloc/alloc.c
Objects/mimalloc/init.c
Objects/mimalloc/page.c
Python/pystate.c