Issue #18619: Fix atexit leaking callbacks registered from sub-interp… · pythoncapi/cpython@2d350fd · GitHub
Skip to content

Commit 2d350fd

Browse files
committed
Issue python#18619: Fix atexit leaking callbacks registered from sub-interpreters, and make it GC-aware.
1 parent 7a2572c commit 2d350fd

3 files changed

Lines changed: 122 additions & 44 deletions

File tree

Lib/test/test_atexit.py

Lines changed: 40 additions & 2 deletions

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,9 @@ Core and Builtins
179179
Library
180180
-------
181181

182+
- Issue #18619: Fix atexit leaking callbacks registered from sub-interpreters,
183+
and make it GC-aware.
184+
182185
- Issue #15699: The readline module now uses PEP 3121-style module
183186
initialization, so as to reclaim allocated resources (Python callbacks)
184187
at shutdown. Original patch by Robin Schreiber.

Modules/atexitmodule.c

Lines changed: 79 additions & 42 deletions

0 commit comments

Comments
 (0)