mirror of
https://github.com/python/cpython.git
synced 2026-01-27 21:25:12 +00:00
The reference count fields, such as `ob_tid` and `ob_ref_shared`, may be accessed concurrently in the free threading build by a `_Py_TryXGetRef` or similar operation. The PyObject header fields will be initialized by `_PyObject_Init`, so only call `memset()` to zero-initialize the remainder of the allocation.
Miscellaneous source files for the main Python shared library