]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-112529: Use _PyThread_Id() in mimalloc in free-threaded build (#115488)
authorSam Gross <colesbury@gmail.com>
Wed, 14 Feb 2024 21:41:29 +0000 (16:41 -0500)
committerGitHub <noreply@github.com>
Wed, 14 Feb 2024 21:41:29 +0000 (16:41 -0500)
commit326119d3731f784aa9f5d4afa7b687dd1ab1d916
treeccb1bbc22f01f1419fba4e99b30d09bc55445b4b
parenta95b1a56bbba76a382a5c676b71db025915e8695
gh-112529: Use _PyThread_Id() in mimalloc in free-threaded build (#115488)

The free-threaded GC uses mimallocs segment thread IDs to restore
the overwritten `ob_tid` thread ids in PyObjects. For that reason, it's
important that PyObjects and mimalloc use the same identifiers.
Include/internal/mimalloc/mimalloc/prim.h
Include/internal/pycore_mimalloc.h