mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
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.
This commit is contained in:
parent
e73c42e15c
commit
2c66318cdc
2 changed files with 4 additions and 3 deletions
|
|
@ -22,7 +22,6 @@ class StressTests(TestBase):
|
|||
interp = interpreters.create()
|
||||
alive.append(interp)
|
||||
|
||||
@unittest.skip('(temporary) gh-120524: there is a race that needs fixing')
|
||||
@support.requires_resource('cpu')
|
||||
def test_create_many_threaded(self):
|
||||
alive = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue