cpython/Objects
Miss Islington (bot) 045e34964a
[3.14] gh-140061: Use _PyObject_IsUniquelyReferenced() to check if objects are uniquely referenced (gh-140062) (gh-140157)
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.
(cherry picked from commit 32c264982e)

Co-authored-by: Sergey Miryanov <sergey.miryanov@gmail.com>
2025-10-15 14:49:17 +00:00
..
clinic [3.14] gh-129559: Remove extra dot in bytearray.resize AC (GH-140134) (#140143) 2025-10-15 14:06:18 +03:00
mimalloc
stringlib
abstract.c
boolobject.c
bytearrayobject.c [3.14] gh-129559: Remove extra dot in bytearray.resize AC (GH-140134) (#140143) 2025-10-15 14:06:18 +03:00
bytes_methods.c
bytesobject.c [3.14] gh-140061: Use _PyObject_IsUniquelyReferenced() to check if objects are uniquely referenced (gh-140062) (gh-140157) 2025-10-15 14:49:17 +00:00
call.c
capsule.c
cellobject.c
classobject.c
codeobject.c [3.14] gh-138661: fix data race in PyCode_Addr2Line (GH-138664) (#138834) 2025-10-07 18:06:45 +00:00
complexobject.c
descrobject.c
dictnotes.txt
dictobject.c [3.14] gh-140061: Use _PyObject_IsUniquelyReferenced() to check if objects are uniquely referenced (gh-140062) (gh-140157) 2025-10-15 14:49:17 +00:00
enumobject.c
exceptions.c
fileobject.c
floatobject.c
frameobject.c
funcobject.c
genericaliasobject.c [3.14] gh-105487: Fix __dir__ entries of GenericAlias (GH-138578) (GH-138629) 2025-10-07 23:12:13 +02:00
genobject.c [3.14] gh-138902: Fix generator send arg name (GH-138905) (#138914) 2025-10-07 23:27:05 +05:30
interpolationobject.c
iterobject.c
listobject.c
listsort.txt
lnotab_notes.txt
longobject.c [3.14] gh-140061: Use _PyObject_IsUniquelyReferenced() to check if objects are uniquely referenced (gh-140062) (gh-140157) 2025-10-15 14:49:17 +00:00
memoryobject.c
methodobject.c
moduleobject.c
namespaceobject.c
object.c
object_layout.md
object_layout_312.gv
object_layout_312.png [3.14] gh-71648: Optimize PNG files (GH-138842) (GH-138851) 2025-10-07 20:52:12 +02:00
object_layout_313.gv
object_layout_313.png [3.14] gh-71648: Optimize PNG files (GH-138842) (GH-138851) 2025-10-07 20:52:12 +02:00
object_layout_full_312.gv
object_layout_full_312.png [3.14] gh-71648: Optimize PNG files (GH-138842) (GH-138851) 2025-10-07 20:52:12 +02:00
object_layout_full_313.gv
object_layout_full_313.png [3.14] gh-71648: Optimize PNG files (GH-138842) (GH-138851) 2025-10-07 20:52:12 +02:00
obmalloc.c
odictobject.c [3.14] gh-125996: fix thread safety of collections.OrderedDict (GH-133734) (#140053) 2025-10-13 23:25:24 +05:30
picklebufobject.c
rangeobject.c
README
setobject.c [3.14] gh-140061: Use _PyObject_IsUniquelyReferenced() to check if objects are uniquely referenced (gh-140062) (gh-140157) 2025-10-15 14:49:17 +00:00
sliceobject.c
structseq.c
templateobject.c
tupleobject.c [3.14] gh-140061: Use _PyObject_IsUniquelyReferenced() to check if objects are uniquely referenced (gh-140062) (gh-140157) 2025-10-15 14:49:17 +00:00
typeobject.c [3.14] gh-133467: fix data race in type_set_name (GH-137302) (#137303) 2025-10-07 18:18:23 +00:00
typeslots.inc
typeslots.py
typevarobject.c [3.14] gh-140000: Traverse name attribute for TypeVar, TypeVarTuple, TypeAliasType, ParamSpec (GH-140016) (#140063) 2025-10-13 20:36:24 +00:00
unicodectype.c
unicodeobject.c [3.14] gh-58124: Avoid CP_UTF8 in UnicodeDecodeError (GH-137415) (#137460) 2025-10-07 19:39:31 +02:00
unicodetype_db.h
unionobject.c [3.14] gh-139988: fix a leak when failing to create a Union type (GH-139990) (#139993) 2025-10-12 11:16:43 +00:00
weakrefobject.c

Source files for various builtin objects