Lines Matching full:generation
70 "collect($module, /, generation=2)\n"
76 "may be an integer specifying which generation to collect. A ValueError\n"
77 "is raised if the generation number is invalid.\n"
85 gc_collect_impl(PyObject *module, int generation);
91 static const char * const _keywords[] = {"generation", NULL}; in gc_collect()
95 int generation = NUM_GENERATIONS - 1; in gc_collect() local
105 generation = _PyLong_AsInt(args[0]); in gc_collect()
106 if (generation == -1 && PyErr_Occurred()) { in gc_collect()
110 _return_value = gc_collect_impl(module, generation); in gc_collect()
224 "get_objects($module, /, generation=None)\n"
229 " generation\n"
230 " Generation to extract the objects from.\n"
232 "If generation is not None, return only the objects tracked by the collector\n"
233 "that are in that generation.");
239 gc_get_objects_impl(PyObject *module, Py_ssize_t generation);
245 static const char * const _keywords[] = {"generation", NULL}; in gc_get_objects()
249 Py_ssize_t generation = -1; in gc_get_objects() local
258 if (!_Py_convert_optional_to_ssize_t(args[0], &generation)) { in gc_get_objects()
262 return_value = gc_get_objects_impl(module, generation); in gc_get_objects()
272 "Return a list of dictionaries containing per-generation statistics.");
332 "Unfreeze all objects in the permanent generation.\n"
334 "Put all objects in the permanent generation back into oldest generation.");
352 "Return the number of objects in the permanent generation.");