File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed
Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -1238,12 +1238,6 @@ deduce_unreachable(PyGC_Head *base, PyGC_Head *unreachable) {
12381238 * objects will remain unreachable, so it would be more efficient to move
12391239 * the reachable objects instead. But this is a one-time cost, probably not
12401240 * worth complicating the code to speed just a little.
1241- *
1242- * Note on types: All types in the unreachable set should be handled after
1243- * the instances of those types are finalized. Otherwise, when we clear
1244- * the weak references, the subclasses list will also be cleared, and
1245- * the type's cache will not be properly invalidated from
1246- * within the __del__ method.
12471241 */
12481242 move_unreachable (base , unreachable ); // gc_prev is pointer again
12491243 validate_list (base , collecting_clear_unreachable_clear );
@@ -1761,7 +1755,6 @@ gc_collect_region(PyThreadState *tstate,
17611755
17621756 /* Call tp_finalize on objects which have one. */
17631757 finalize_garbage (tstate , & unreachable );
1764-
17651758 /* Handle any objects that may have resurrected after the call
17661759 * to 'finalize_garbage' and continue the collection with the
17671760 * objects that are still unreachable */
You can’t perform that action at this time.
0 commit comments