]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-129824: fix data races in subinterpreters under TSAN (GH-135794) (#136266)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 6 Jul 2025 13:23:55 +0000 (15:23 +0200)
committerGitHub <noreply@github.com>
Sun, 6 Jul 2025 13:23:55 +0000 (18:53 +0530)
commit3ea7276a8e9edcf5cc5409448467023a34d4f083
treee2e84aec108cfc36aa92221f9715358e3a3a8310
parentd86ca7b610fb8cf70796f40c51ef4f0332970a08
[3.14] gh-129824: fix data races in subinterpreters under TSAN (GH-135794) (#136266)

gh-129824: fix data races in subinterpreters under TSAN (GH-135794)

This fixes the data races in typeobject.c in subinterpreters under free-threading. The type flags and slots are only modified in the main interpreter as all static types are first initialised in main interpreter.
(cherry picked from commit b582d751b4968d4534fdb7894e50713676789b2f)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Objects/typeobject.c