diff options
author | Tim Peters <tim.peters@gmail.com> | 2019-10-09 17:37:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-09 17:37:30 (GMT) |
commit | ecbf35f9335b0420cb8adfda6f299d6747a16515 (patch) | |
tree | 3f011932f3e968a91391a6931346825596525f60 /Misc | |
parent | 01171ebd966b0cd6352057799ad876dd1e07942e (diff) | |
download | cpython-ecbf35f9335b0420cb8adfda6f299d6747a16515.zip cpython-ecbf35f9335b0420cb8adfda6f299d6747a16515.tar.gz cpython-ecbf35f9335b0420cb8adfda6f299d6747a16515.tar.bz2 |
bpo-38379: don't claim objects are collected when they aren't (#16658)
* bpo-38379: when a finalizer resurrects an object,
nothing is actually collected in this run of gc.
Change the stats to relect that truth.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2019-10-09-16-50-52.bpo-38379.oz5qZx.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2019-10-09-16-50-52.bpo-38379.oz5qZx.rst b/Misc/NEWS.d/next/Core and Builtins/2019-10-09-16-50-52.bpo-38379.oz5qZx.rst new file mode 100644 index 0000000..82dcb52 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2019-10-09-16-50-52.bpo-38379.oz5qZx.rst @@ -0,0 +1 @@ +When cyclic garbage collection (gc) runs finalizers that resurrect unreachable objects, the current gc run ends, without collecting any cyclic trash. However, the statistics reported by ``collect()`` and ``get_stats()`` claimed that all cyclic trash found was collected, and that the resurrected objects were collected. Changed the stats to report that none were collected. |