]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.7] bpo-38379: don't claim objects are collected when they aren't (GH-16658) ...
authorPablo Galindo <Pablogsal@gmail.com>
Wed, 9 Oct 2019 21:42:54 +0000 (22:42 +0100)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 9 Oct 2019 21:42:54 +0000 (14:42 -0700)
commita081e931505f190b5ccdff9a781e59b3f13fcc31
tree3e0cbb7dd667b3f866655b34713ccd5faad18ded
parent598bfa4d457d61431142ad99ecbb9bd10cf314e6
[3.7] bpo-38379:  don't claim objects are collected when they aren't (GH-16658) (GH-16685)

* [bpo-38379](https://bugs.python.org/issue38379):  when a finalizer resurrects an object,
nothing is actually collected in this run of gc.
Change the stats to relect that truth..
(cherry picked from commit ecbf35f9335b0420cb8adfda6f299d6747a16515)

Co-authored-by: Tim Peters <tim.peters@gmail.com>
https://bugs.python.org/issue38379

Automerge-Triggered-By: @pablogsal
Lib/test/test_gc.py
Misc/NEWS.d/next/Core and Builtins/2019-10-09-16-50-52.bpo-38379.oz5qZx.rst [new file with mode: 0644]
Modules/gcmodule.c