File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -618,9 +618,10 @@ collect(int generation)
618618 debug_cycle ("collectable" , FROM_GC (gc ));
619619 }
620620 }
621- /* Call tp_clear on objects in the collectable set. This will cause
622- * the reference cycles to be broken. It may also cause some objects
623- * in finalizers and/or reachable_from_finalizers to be freed */
621+ /* Call tp_clear on objects in the unreachable set. This will cause
622+ * the reference cycles to be broken. It may also cause some objects
623+ * in finalizers to be freed.
624+ */
624625 delete_garbage (& unreachable , old );
625626
626627 /* Collect statistics on uncollectable objects found and print
@@ -651,7 +652,7 @@ collect(int generation)
651652
652653 if (PyErr_Occurred ()) {
653654 if (gc_str == NULL )
654- gc_str = PyString_FromString ("garbage collection" );
655+ gc_str = PyString_FromString ("garbage collection" );
655656 PyErr_WriteUnraisable (gc_str );
656657 Py_FatalError ("unexpected exception during garbage collection" );
657658 }
You can’t perform that action at this time.
0 commit comments