mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Remove _Py_ResetReferences. Fixes bug #529750 "Circular reference makes
Py_Init crash". refchain cannot be cleared because objects can live across Py_Finalize() and Py_Initialize() if they are kept alive by circular references.
This commit is contained in:
parent
6141812820
commit
89350a41b9
3 changed files with 0 additions and 12 deletions
|
|
@ -1908,13 +1908,6 @@ _Py_ReadyTypes(void)
|
|||
|
||||
static PyObject refchain = {&refchain, &refchain};
|
||||
|
||||
void
|
||||
_Py_ResetReferences(void)
|
||||
{
|
||||
refchain._ob_prev = refchain._ob_next = &refchain;
|
||||
_Py_RefTotal = 0;
|
||||
}
|
||||
|
||||
void
|
||||
_Py_NewReference(PyObject *op)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue