mirror of
https://github.com/python/cpython.git
synced 2025-09-09 18:32:22 +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
|
@ -62,7 +62,7 @@ tuple_alloc(Py_ssize_t size)
|
|||
static inline PyObject *
|
||||
tuple_get_empty(void)
|
||||
{
|
||||
return Py_NewRef(&_Py_SINGLETON(tuple_empty));
|
||||
return (PyObject *)&_Py_SINGLETON(tuple_empty);
|
||||
}
|
||||
|
||||
PyObject *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue