mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +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
|
@ -2029,8 +2029,7 @@ whichmodule(PyObject *global, PyObject *dotted_path)
|
|||
}
|
||||
|
||||
/* If no module is found, use __main__. */
|
||||
module_name = &_Py_ID(__main__);
|
||||
return Py_NewRef(module_name);
|
||||
return &_Py_ID(__main__);
|
||||
}
|
||||
|
||||
/* fast_save_enter() and fast_save_leave() are guards against recursive
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue