aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/pystate.c
diff options
context:
space:
mode:
authorSam Gross <colesbury@gmail.com>2024-11-22 17:55:33 +0000
committerGitHub <noreply@github.com>2024-11-22 12:55:33 -0500
commit4759ba6eec9f0b36b24b8eb7e7b120d471c67e82 (patch)
treeccadc7b0918507133e2f4ec4abff6d517f2b618e /Python/pystate.c
parent8214e0f709010a0e1fa06dc2ce004b5f6103cc6b (diff)
downloadcpython-4759ba6eec9f0b36b24b8eb7e7b120d471c67e82.tar.gz
cpython-4759ba6eec9f0b36b24b8eb7e7b120d471c67e82.zip
gh-127022: Simplify `PyStackRef_FromPyObjectSteal` (#127024)
This gets rid of the immortal check in `PyStackRef_FromPyObjectSteal()`. Overall, this improves performance about 2% in the free threading build. This also renames `PyStackRef_Is()` to `PyStackRef_IsExactly()` because the macro requires that the tag bits of the arguments match, which is only true in certain special cases.
Diffstat (limited to 'Python/pystate.c')
0 files changed, 0 insertions, 0 deletions