]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-117323: Make `cell` thread-safe in free-threaded builds (#117330)
authorSam Gross <colesbury@gmail.com>
Fri, 29 Mar 2024 17:35:43 +0000 (13:35 -0400)
committerGitHub <noreply@github.com>
Fri, 29 Mar 2024 17:35:43 +0000 (13:35 -0400)
commit19c1dd60c5b53fb0533610ad139ef591294f26e8
treef76436f1512efe26885b65c49585a761a1658e82
parent397d88db5e9ab2a43de3fdf5f8b973a949edc405
gh-117323: Make `cell` thread-safe in free-threaded builds (#117330)

Use critical sections to lock around accesses to cell contents. The critical sections are no-ops in the default (with GIL) build.
Include/internal/pycore_cell.h [new file with mode: 0644]
Makefile.pre.in
Objects/cellobject.c
PCbuild/pythoncore.vcxproj
PCbuild/pythoncore.vcxproj.filters
Python/bytecodes.c
Python/ceval.c
Python/executor_cases.c.h
Python/generated_cases.c.h
Tools/cases_generator/analyzer.py
Tools/jit/template.c