Skip to content

Commit 654b8d9

Browse files
GH-137562: Fix github-issue number for deallocated objects in cache bug (GH-137614)
1 parent f660ec3 commit 654b8d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/gc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ move_legacy_finalizer_reachable(PyGC_Head *finalizers)
882882
* to invalidate caches (e.g. by PyType_Modified), that clearing has created
883883
* a bug. If the weakref to the subclass is cleared before a finalizer is
884884
* called, the cache may not be correctly invalidated. That can lead to
885-
* segfaults since the caches can refer to deallocated objects (GH-91636
885+
* segfaults since the caches can refer to deallocated objects (GH-135552
886886
* is an example). Now, we delay the clear of weakrefs without callbacks
887887
* until *after* finalizers have been executed. That means weakrefs without
888888
* callbacks are still usable while finalizers are being executed.

0 commit comments

Comments
 (0)