]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[2.7] bpo-33622: Fix issues with handling errors in the GC. (GH-7078) (#7096)
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 24 May 2018 20:27:08 +0000 (23:27 +0300)
committerGitHub <noreply@github.com>
Thu, 24 May 2018 20:27:08 +0000 (23:27 +0300)
commit9044cd675902b438bc500908e410382ff48299d8
treeea356b7915c5b91d984a113bf40523d0745f77c9
parent8cbde8a43769641373a681af4b0d72944af43f95
[2.7] bpo-33622: Fix issues with handling errors in the GC. (GH-7078) (#7096)

* 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.
(cherry picked from commit 301e3cc8a5bc68c5347ab6ac6f83428000d31ab2)
Misc/NEWS.d/next/Core and Builtins/2018-05-23-20-46-14.bpo-33622.xPucO9.rst [new file with mode: 0644]
Modules/gcmodule.c