Commit fb2ab4d5 authored by Tim Peters's avatar Tim Peters

Comment repair; no semantic changes.

parent f6b8045c
...@@ -618,9 +618,10 @@ collect(int generation) ...@@ -618,9 +618,10 @@ collect(int generation)
debug_cycle("collectable", FROM_GC(gc)); debug_cycle("collectable", FROM_GC(gc));
} }
} }
/* Call tp_clear on objects in the collectable set. This will cause /* Call tp_clear on objects in the unreachable set. This will cause
* the reference cycles to be broken. It may also cause some objects * the reference cycles to be broken. It may also cause some objects
* in finalizers and/or reachable_from_finalizers to be freed */ * in finalizers to be freed.
*/
delete_garbage(&unreachable, old); delete_garbage(&unreachable, old);
/* Collect statistics on uncollectable objects found and print /* Collect statistics on uncollectable objects found and print
...@@ -651,7 +652,7 @@ collect(int generation) ...@@ -651,7 +652,7 @@ collect(int generation)
if (PyErr_Occurred()) { if (PyErr_Occurred()) {
if (gc_str == NULL) if (gc_str == NULL)
gc_str = PyString_FromString("garbage collection"); gc_str = PyString_FromString("garbage collection");
PyErr_WriteUnraisable(gc_str); PyErr_WriteUnraisable(gc_str);
Py_FatalError("unexpected exception during garbage collection"); Py_FatalError("unexpected exception during garbage collection");
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment