]> granicus.if.org Git - python/commit
[3.6] bpo-33622: Fix issues with handling errors in the GC. (GH-7078) (GH-7095)
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 24 May 2018 13:05:38 +0000 (16:05 +0300)
committerGitHub <noreply@github.com>
Thu, 24 May 2018 13:05:38 +0000 (16:05 +0300)
commitf0e04b2ae27a4da940a76ae522f0438f80ce5d5a
tree12055f95913c030ac290afc56d1b2ea3de49e932
parent935c81bbbca28ca23862d7ee1f79cd502e447edd
[3.6] bpo-33622: Fix issues with handling errors in the GC. (GH-7078) (GH-7095)

* 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.
(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