]> granicus.if.org Git - python/commit
bpo-31558: Add gc.freeze() (#3705)
authorbrainfvck <li.zekun@gmail.com>
Mon, 16 Oct 2017 19:49:41 +0000 (12:49 -0700)
committerŁukasz Langa <lukasz@langa.pl>
Mon, 16 Oct 2017 19:49:41 +0000 (12:49 -0700)
commitc75edabbb65ca2bb29e51f8d1eb2c780e5890982
treee437dc1926002cf3700c39696ec239da3f31dc1e
parentbdaeb7d237462a629e6c85001317faa85f94a0c6
bpo-31558: Add gc.freeze() (#3705)

Freeze all the objects tracked by gc - move them to a permanent generation
and ignore all the future collections. This can be used before a POSIX
fork() call to make the gc copy-on-write friendly or to speed up collection.
Doc/library/gc.rst
Include/internal/mem.h
Lib/test/test_gc.py
Modules/clinic/gcmodule.c.h
Modules/gcmodule.c