diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2018-05-24 12:19:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-24 12:19:29 (GMT) |
commit | 301e3cc8a5bc68c5347ab6ac6f83428000d31ab2 (patch) | |
tree | 3913f8bed57a749dc1940153c7d0ffc386008982 /Misc/NEWS.d | |
parent | 03c0d2e1f272c7c6df5f6066a6abc222ff61073a (diff) | |
download | cpython-301e3cc8a5bc68c5347ab6ac6f83428000d31ab2.zip cpython-301e3cc8a5bc68c5347ab6ac6f83428000d31ab2.tar.gz cpython-301e3cc8a5bc68c5347ab6ac6f83428000d31ab2.tar.bz2 |
bpo-33622: Fix issues with handling errors in the GC. (GH-7078)
* Fixed a leak when the GC fails to add an object with __del__ into
the gc.garbage list.
* PyGC_Collect() can now be called when an exception is set and
preserves it.
* Fixed an undefined behavior with comparing a dead pointer with NULL.
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2018-05-23-20-46-14.bpo-33622.xPucO9.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2018-05-23-20-46-14.bpo-33622.xPucO9.rst b/Misc/NEWS.d/next/Core and Builtins/2018-05-23-20-46-14.bpo-33622.xPucO9.rst new file mode 100644 index 0000000..e589b45 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2018-05-23-20-46-14.bpo-33622.xPucO9.rst @@ -0,0 +1,4 @@ +Fixed a leak when the garbage collector fails to add an object with the +``__del__`` method or referenced by it into the :data:`gc.garbage` list. +:c:func:`PyGC_Collect` can now be called when an exception is set and +preserves it. |