File tree 2 files changed +10
-13
lines changed 2 files changed +10
-13
lines changed Original file line number Diff line number Diff line change @@ -354,16 +354,6 @@ asend().throw()
354
354
355
355
..
356
356
357
- .. date: 2024-04-13-18-59-25
358
- .. gh-issue: 115874
359
- .. nonce: c3xG-E
360
- .. section: Core and Builtins
361
-
362
- Fixed a possible segfault during garbage collection of
363
- ``_asyncio.FutureIter `` objects
364
-
365
- ..
366
-
367
357
.. date: 2024-04-13-16-55-53
368
358
.. gh-issue: 117536
369
359
.. nonce: xkVbfv
@@ -883,6 +873,16 @@ Alex Waygood.
883
873
884
874
..
885
875
876
+ .. date: 2024-04-13-18-59-25
877
+ .. gh-issue: 115874
878
+ .. nonce: c3xG-E
879
+ .. section: Library
880
+
881
+ Fixed a possible segfault during garbage collection of
882
+ ``_asyncio.FutureIter `` objects. Patch by Savannah Ostrowski.
883
+
884
+ ..
885
+
886
886
.. date: 2024-04-13-01-45-15
887
887
.. gh-issue: 115060
888
888
.. nonce: IxoM03
Original file line number Diff line number Diff line change @@ -1602,7 +1602,6 @@ FutureIter_dealloc(futureiterobject *it)
1602
1602
{
1603
1603
PyTypeObject * tp = Py_TYPE (it );
1604
1604
1605
- // FutureIter is a heap type so any subclass must also be a heap type.
1606
1605
assert (_PyType_HasFeature (tp , Py_TPFLAGS_HEAPTYPE ));
1607
1606
1608
1607
PyObject * module = ((PyHeapTypeObject * )tp )-> ht_module ;
@@ -1613,8 +1612,6 @@ FutureIter_dealloc(futureiterobject *it)
1613
1612
1614
1613
// GH-115874: We can't use PyType_GetModuleByDef here as the type might have
1615
1614
// already been cleared, which is also why we must check if ht_module != NULL.
1616
- // Due to this restriction, subclasses that belong to a different module
1617
- // will not be able to use the free list.
1618
1615
if (module && _PyModule_GetDef (module ) == & _asynciomodule ) {
1619
1616
state = get_asyncio_state (module );
1620
1617
}
You can’t perform that action at this time.
0 commit comments