summaryrefslogtreecommitdiffstats
path: root/Include/object.h
diff options
context:
space:
mode:
authorSam Gross <colesbury@gmail.com>2024-10-24 16:44:38 (GMT)
committerGitHub <noreply@github.com>2024-10-24 16:44:38 (GMT)
commit3c4a7fa6178d852ccb73527aaa2d0a5e93022e89 (patch)
treee74c8d15c6dab8e3b58478aa5e0d9915477f83de /Include/object.h
parent5003ad5c5ea508f0dde1b374cd8bc6a481ad5c5d (diff)
downloadcpython-3c4a7fa6178d852ccb73527aaa2d0a5e93022e89.zip
cpython-3c4a7fa6178d852ccb73527aaa2d0a5e93022e89.tar.gz
cpython-3c4a7fa6178d852ccb73527aaa2d0a5e93022e89.tar.bz2
gh-124218: Avoid refcount contention on builtins module (GH-125847)
This replaces `_PyEval_BuiltinsFromGlobals` with `_PyDict_LoadBuiltinsFromGlobals`, which returns a new reference instead of a borrowed reference. Internally, the new function uses per-thread reference counting when possible to avoid contention on the refcount fields on the builtins module.
Diffstat (limited to 'Include/object.h')
0 files changed, 0 insertions, 0 deletions