Lines Matching refs:garbage
123 #define DEBUG_SAVEALL (1<<5) /* save all garbage in gc.garbage */
164 gcstate->garbage = PyList_New(0);
165 if (gcstate->garbage == NULL) {
920 /* Handle uncollectable garbage (cycles with tp_del slots, and stuff reachable
923 * garbage list (a Python list), else only the objects in finalizers with
924 * __del__ methods are appended to garbage. All objects in finalizers are
933 assert(gcstate->garbage != NULL);
940 if (PyList_Append(gcstate->garbage, op) < 0) {
1004 assert(gcstate->garbage != NULL);
1005 if (PyList_Append(gcstate->garbage, op) < 0) {
1195 assert(gcstate->garbage != NULL);
1304 * reachable list of garbage. The programmer has to deal with
1321 _PyErr_WriteUnraisableMsg("in garbage collection", NULL);
1346 /* Invoke progress callbacks to notify clients that garbage collection
1391 /* Perform garbage collection of a generation and invoke
1419 To limit the cost of garbage collection, there are two strategies;
1445 thusly: "each full garbage collection is more and more costly as the
1467 Enable automatic garbage collection.
1481 Disable automatic garbage collection.
1495 Returns true if automatic garbage collection is enabled.
1510 Run the garbage collector.
1553 DEBUG_SAVEALL - Save objects to gc.garbage rather than freeing them.
1557 Set the garbage collection debugging flags.
1574 Get the garbage collection debugging flags.
1855 Returns true if the object is tracked by the garbage collector.
1949 "This module provides access to the garbage collector for reference cycles.\n"
1951 "enable() -- Enable automatic garbage collection.\n"
1952 "disable() -- Disable automatic garbage collection.\n"
1999 /* garbage and callbacks are initialized by _PyGC_Init() early in
2001 assert(gcstate->garbage != NULL);
2002 if (PyModule_AddObjectRef(module, "garbage", gcstate->garbage) < 0) {
2040 /* C API for controlling the state of the garbage collector */
2099 threads, a daemon thread can start a cyclic garbage collection
2120 && gcstate->garbage != NULL && PyList_GET_SIZE(gcstate->garbage) > 0) {
2133 PyList_GET_SIZE(gcstate->garbage)))
2137 repr = PyObject_Repr(gcstate->garbage);
2139 PyErr_WriteUnraisable(gcstate->garbage);
2174 Py_CLEAR(gcstate->garbage);
2222 "by the garbage collector");