diff options
author | Sam Gross <colesbury@gmail.com> | 2024-10-24 16:44:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-24 16:44:38 (GMT) |
commit | 3c4a7fa6178d852ccb73527aaa2d0a5e93022e89 (patch) | |
tree | e74c8d15c6dab8e3b58478aa5e0d9915477f83de /Include/Python.h | |
parent | 5003ad5c5ea508f0dde1b374cd8bc6a481ad5c5d (diff) | |
download | cpython-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/Python.h')
0 files changed, 0 insertions, 0 deletions