]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-130920: Fix data race in STORE_SUBSCR_LIST_INT (#130923)
authorSam Gross <colesbury@gmail.com>
Thu, 6 Mar 2025 20:59:48 +0000 (15:59 -0500)
committerGitHub <noreply@github.com>
Thu, 6 Mar 2025 20:59:48 +0000 (15:59 -0500)
commita025f27d94afe732be2e9e6f05b9007d04f983a8
treeb6aa09f6d03597662245346c324823cde12323f7
parent6c6600f6831aec15b2acbd7a9bb9c275bd5f4a32
gh-130920: Fix data race in STORE_SUBSCR_LIST_INT (#130923)

The write of the item to the list needs to use an atomic operation in
the free threading build.

Co-authored-by: Tomasz Pytel <tompytel@gmail.com>
Lib/test/test_free_threading/test_list.py
Python/bytecodes.c
Python/executor_cases.c.h
Python/generated_cases.c.h