mirror of
https://github.com/python/cpython.git
synced 2026-05-11 23:18:57 -04:00
32c264982e
The previous `Py_REFCNT(x) == 1` checks can have data races in the free threaded build. `_PyObject_IsUniquelyReferenced(x)` is a more conservative check that is safe in the free threaded build and is identical to `Py_REFCNT(x) == 1` in the default GIL-enabled build.
Source files for various builtin objects