mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Revert gh-127266: avoid data races when updating type slots (gh-131174) (gh-133129)
This is triggering deadlocks in test_opcache. See GH-133130 for stack trace.
This commit is contained in:
parent
219b1f9d1d
commit
eecafc3380
10 changed files with 112 additions and 233 deletions
|
@ -576,7 +576,6 @@ class TestRacesDoNotCrash(TestBase):
|
|||
# Careful with these. Bigger numbers have a higher chance of catching bugs,
|
||||
# but you can also burn through a *ton* of type/dict/function versions:
|
||||
ITEMS = 1000
|
||||
SMALL_ITEMS = 100
|
||||
LOOPS = 4
|
||||
WRITERS = 2
|
||||
|
||||
|
@ -620,7 +619,7 @@ class TestRacesDoNotCrash(TestBase):
|
|||
__getitem__ = lambda self, item: None
|
||||
|
||||
items = []
|
||||
for _ in range(self.SMALL_ITEMS):
|
||||
for _ in range(self.ITEMS):
|
||||
item = C()
|
||||
items.append(item)
|
||||
return items
|
||||
|
@ -791,7 +790,7 @@ class TestRacesDoNotCrash(TestBase):
|
|||
__getattribute__ = lambda self, name: None
|
||||
|
||||
items = []
|
||||
for _ in range(self.SMALL_ITEMS):
|
||||
for _ in range(self.ITEMS):
|
||||
item = C()
|
||||
items.append(item)
|
||||
return items
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue