Skip to content

Commit bc0297c

Browse files
Remove obsolete comments
1 parent 1ad18ec commit bc0297c

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Python/gc.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff 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 */

0 commit comments

Comments
 (0)