Fix Py->Ty prefix inconsistencies in crossinterp, specialize, and atexit

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-29 22:11:46 +00:00
parent 90565c001d
commit 6d356beba2
4 changed files with 142 additions and 45 deletions

View File

@@ -2184,7 +2184,7 @@ _Py_Specialize_Call(_PyStackRef callable_st, _Ty_CODEUNIT *instr, int nargs)
assert(ENABLE_SPECIALIZATION_FT);
assert(_TyOpcode_Caches[CALL] == INLINE_CACHE_ENTRIES_CALL);
assert(_Py_OPCODE(*instr) != INSTRUMENTED_CALL);
assert(_Ty_OPCODE(*instr) != INSTRUMENTED_CALL);
int fail;
if (PyCFunction_CheckExact(callable)) {
fail = specialize_c_call(callable, instr, nargs);
@@ -2224,7 +2224,7 @@ _Py_Specialize_CallKw(_PyStackRef callable_st, _Ty_CODEUNIT *instr, int nargs)
assert(ENABLE_SPECIALIZATION_FT);
assert(_TyOpcode_Caches[CALL_KW] == INLINE_CACHE_ENTRIES_CALL_KW);
assert(_Py_OPCODE(*instr) != INSTRUMENTED_CALL_KW);
assert(_Ty_OPCODE(*instr) != INSTRUMENTED_CALL_KW);
int fail;
if (TyFunction_Check(callable)) {
fail = specialize_py_call_kw((PyFunctionObject *)callable, instr, nargs, false);