mirror of
https://github.com/python/cpython.git
synced 2026-05-06 20:51:17 -04:00
e414a2d81c
In the free-threaded build, avoid data races caused by updating type slots or type flags after the type was initially created. For those (typically rare) cases, use the stop-the-world mechanism. Remove the use of atomics when reading or writing type flags. The use of atomics is not sufficient to avoid races (since flags are sometimes read without a lock and without atomics) and are no longer required.
Miscellaneous source files for the main Python shared library