mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
GH-108362: Incremental Cycle GC (GH-116206)
This commit is contained in:
parent
d5ebf8b71f
commit
15309329b6
14 changed files with 743 additions and 447 deletions
|
@ -1031,7 +1031,7 @@ _extensions_cache_set(PyObject *filename, PyObject *name, PyModuleDef *def)
|
|||
if (!already_set) {
|
||||
/* We assume that all module defs are statically allocated
|
||||
and will never be freed. Otherwise, we would incref here. */
|
||||
_Py_SetImmortal(def);
|
||||
_Py_SetImmortal((PyObject *)def);
|
||||
}
|
||||
res = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue