]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-116664: In _warnings.c, make filters_version access thread-safe (#117374)
authorErlend E. Aasland <erlend@python.org>
Fri, 29 Mar 2024 20:23:28 +0000 (21:23 +0100)
committerGitHub <noreply@github.com>
Fri, 29 Mar 2024 20:23:28 +0000 (21:23 +0100)
commit05e0b67a43c5c1778dc2643c8b7c12864e135999
treecde3eb6d3c07a9251a8fb43f77f96a4e47e39851
parent019143fecbfc26e69800d28d2a9e3392a051780b
gh-116664: In _warnings.c, make filters_version access thread-safe (#117374)

- assert that the lock is held in already_warned()
- protect 'filters_version' increment in warnings_filters_mutated_impl()
Python/_warnings.c