mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
GH-84436: Skip refcounting for known immortals (GH-107605)
This commit is contained in:
parent
ec0a0d2bd9
commit
05a824f294
19 changed files with 52 additions and 65 deletions
|
@ -1265,7 +1265,7 @@ initialize_locals(PyThreadState *tstate, PyFunctionObject *func,
|
|||
if (co->co_flags & CO_VARARGS) {
|
||||
PyObject *u = NULL;
|
||||
if (argcount == n) {
|
||||
u = Py_NewRef(&_Py_SINGLETON(tuple_empty));
|
||||
u = (PyObject *)&_Py_SINGLETON(tuple_empty);
|
||||
}
|
||||
else {
|
||||
assert(args != NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue