[issue43441] mutilcorevm: global variable next_version_tag cause method cache bug
junyixie
report at bugs.python.org
Tue Mar 9 01:31:20 EST 2021
junyixie <xie.junyi at outlook.com> added the comment:
fix:
only main interpreter fini, clear method cache.
void
_PyType_Fini(PyInterpreterState *interp)
{
if (_Py_IsMainInterpreter(interp)) {
clear_slotdefs();
_PyType_ClearCache(&interp->type_cache);
}
}
when python4.0? type isolate, each interpreter dealloc should clear method cache.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43441>
_______________________________________
More information about the Python-bugs-list
mailing list