Skip to content

Commit

Permalink
Comment repair; no semantic changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-one committed Apr 7, 2003
1 parent f6b8045 commit fb2ab4d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Modules/gcmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -618,9 +618,10 @@ collect(int generation)
debug_cycle("collectable", FROM_GC(gc));
}
}
/* Call tp_clear on objects in the collectable set. This will cause
* the reference cycles to be broken. It may also cause some objects
* in finalizers and/or reachable_from_finalizers to be freed */
/* Call tp_clear on objects in the unreachable set. This will cause
* the reference cycles to be broken. It may also cause some objects
* in finalizers to be freed.
*/
delete_garbage(&unreachable, old);

/* Collect statistics on uncollectable objects found and print
Expand Down Expand Up @@ -651,7 +652,7 @@ collect(int generation)

if (PyErr_Occurred()) {
if (gc_str == NULL)
gc_str = PyString_FromString("garbage collection");
gc_str = PyString_FromString("garbage collection");
PyErr_WriteUnraisable(gc_str);
Py_FatalError("unexpected exception during garbage collection");
}
Expand Down

0 comments on commit fb2ab4d

Please sign in to comment.