summaryrefslogtreecommitdiff
path: root/Include
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2019-10-13 16:48:59 +0100
committerGitHub <noreply@github.com>2019-10-13 16:48:59 +0100
commit466326dcdf038b948d94302c315be407c73e60d1 (patch)
treee19508731d6c91651ae58a85e8d3d00a09a39c99 /Include
parente3babbd03cd2bcb3c85deabae3bc6976aa95a3c3 (diff)
downloadcpython-git-466326dcdf038b948d94302c315be407c73e60d1.tar.gz
bpo-38379: Don't block collection of unreachable objects when some objects resurrect (GH-16687)
Currently if any finalizer invoked during garbage collection resurrects any object, the gc gives up and aborts the collection. Although finalizers are assured to only run once per object, this behaviour of the gc can lead to an ever-increasing memory situation if new resurrecting objects are allocated in every new gc collection. To avoid this, recompute what objects among the unreachable set need to be resurrected and what objects can be safely collected. In this way, resurrecting objects will not block the collection of other objects in the unreachable set.
Diffstat (limited to 'Include')
0 files changed, 0 insertions, 0 deletions