]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-120524: Avoid a Race On _PyRuntime.types.managed_static.types[i].interp_count...
authorEric Snow <ericsnowcurrently@gmail.com>
Mon, 17 Jun 2024 19:16:00 +0000 (15:16 -0400)
committerGitHub <noreply@github.com>
Mon, 17 Jun 2024 19:16:00 +0000 (13:16 -0600)
commit2c66318cdc0545da37e7046533dfe74bde129d91
tree13c31f6df905d37a572718bf4994ffeb04c28f38
parente73c42e15cf83c7a81de016ce2827c04110c80c3
gh-120524: Avoid a Race On _PyRuntime.types.managed_static.types[i].interp_count (gh-120529)

gh-120182 added new global state (interp_count), but didn't add thread-safety for it.  This change eliminates the possible race.
Lib/test/test_interpreters/test_stress.py
Objects/typeobject.c