comparison Python/pythonrun.c @ 26263:244e8fbe4e20 legacy-trunk

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.
author Neil Schemenauer <nascheme@enme.ucalgary.ca>
date Sun, 17 Nov 2002 17:52:44 +0000
parents 093fe5b9f6f9
children cc05c2c8660e
comparison
equal deleted inserted replaced
26262:76601fb078d4 26263:244e8fbe4e20
275 if (Py_GETENV("PYTHONMALLOCSTATS")) 275 if (Py_GETENV("PYTHONMALLOCSTATS"))
276 _PyObject_DebugMallocStats(); 276 _PyObject_DebugMallocStats();
277 #endif 277 #endif
278 278
279 call_ll_exitfuncs(); 279 call_ll_exitfuncs();
280
281 #ifdef Py_TRACE_REFS
282 _Py_ResetReferences();
283 #endif /* Py_TRACE_REFS */
284 } 280 }
285 281
286 /* Create and initialize a new interpreter and thread, and return the 282 /* Create and initialize a new interpreter and thread, and return the
287 new thread. This requires that Py_Initialize() has been called 283 new thread. This requires that Py_Initialize() has been called
288 first. 284 first.