mirror of
https://github.com/python/cpython.git
synced 2025-07-08 03:45:36 +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
|
@ -1267,7 +1267,7 @@ PyTypeObject _PyContextTokenMissing_Type = {
|
|||
static PyObject *
|
||||
get_token_missing(void)
|
||||
{
|
||||
return Py_NewRef(&_Py_SINGLETON(context_token_missing));
|
||||
return (PyObject *)&_Py_SINGLETON(context_token_missing);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue