]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-133467: fix data race in `type_set_name` (#137302)
authorKumar Aditya <kumaraditya@python.org>
Fri, 1 Aug 2025 13:40:40 +0000 (19:10 +0530)
committerGitHub <noreply@github.com>
Fri, 1 Aug 2025 13:40:40 +0000 (13:40 +0000)
commite99bc7fd44bbbf2464c37d5a57777ac0e1264c37
treeccfa6431ec99b7a7c07aa679f8463abf76db20b8
parent9ced5c4ace93d47c83fdce51a2bcd6505b33f516
gh-133467: fix data race in `type_set_name` (#137302)

Fix data race in `type_set_name` by assigning name under stop the world pause making it thread safe in free-threading.
Lib/test/test_free_threading/test_type.py
Objects/typeobject.c
Tools/tsan/suppressions_free_threading.txt