]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-131586: Avoid refcount contention in context managers (gh-131851)
authorSam Gross <colesbury@gmail.com>
Mon, 21 Apr 2025 19:54:25 +0000 (15:54 -0400)
committerGitHub <noreply@github.com>
Mon, 21 Apr 2025 19:54:25 +0000 (15:54 -0400)
commitda53660f35db2dfb1e6181e603468dfe5758f3b8
treecf641cfff0634552f7d84ae9b246fa17d5e04166
parent8dfa840773d1d6bae1bf6e0dfa07618ea10c9d71
gh-131586: Avoid refcount contention in context managers (gh-131851)

This avoid reference count contention in the free threading build
when calling special methods like `__enter__` and `__exit__`.
Include/internal/pycore_object.h
Include/internal/pycore_opcode_metadata.h
Include/internal/pycore_uop_ids.h
Include/internal/pycore_uop_metadata.h
Objects/typeobject.c
Python/bytecodes.c
Python/executor_cases.c.h
Python/generated_cases.c.h
Python/optimizer_bytecodes.c
Python/optimizer_cases.c.h
Tools/ftscalingbench/ftscalingbench.py