mirror of
https://github.com/python/cpython.git
synced 2025-10-22 14:42:22 +00:00
![]() Concurrent accesses from multiple threads to the same `cell` object did not scale well in the free-threaded build. Use `_PyStackRef` and optimistically avoid locking to improve scaling. With the locks around cell reads gone, some of the free threading tests were prone to starvation: the readers were able to run in a tight loop and the writer threads weren't scheduled frequently enough to make timely progress. Adjust the tests to avoid this. Co-authored-by: Donghee Na <donghee.na@python.org> |
||
---|---|---|
.. | ||
__init__.py | ||
test_code.py | ||
test_dict.py | ||
test_enumerate.py | ||
test_func_annotations.py | ||
test_gc.py | ||
test_iteration.py | ||
test_itertools_batched.py | ||
test_list.py | ||
test_methodcaller.py | ||
test_monitoring.py | ||
test_races.py | ||
test_reversed.py | ||
test_set.py | ||
test_slots.py | ||
test_str.py | ||
test_tokenize.py | ||
test_type.py | ||
test_zip.py |