]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-128421: Add locking to most frame object functions (gh-131479)
authorSam Gross <colesbury@gmail.com>
Fri, 21 Mar 2025 15:10:07 +0000 (11:10 -0400)
committerGitHub <noreply@github.com>
Fri, 21 Mar 2025 15:10:07 +0000 (11:10 -0400)
commit4f325168048fda89cef8bd2de859f65ec91754a3
treeb2bbdb47c4182131b0ab4eebbae22172360af344
parent5d8e981c8477ce483374b2fe6cd309a08c956299
gh-128421: Add locking to most frame object functions (gh-131479)

This makes more operations on frame objects thread-safe in the free
threaded build, which fixes some data races that occurred when passing
exceptions between threads.

However, accessing local variables from another thread while its running
is still not thread-safe and may crash the interpreter.
Objects/clinic/frameobject.c.h [new file with mode: 0644]
Objects/frameobject.c
Python/frame.c