PyDocs

Nav

Python Runtime Services

freeze

gc

function · Added in 3.7
  • freeze()
Freeze all current tracked objects and ignore them for future collections.

This can be used before a POSIX fork() call to make the gc copy-on-write
friendly.
Note: collection before a POSIX fork() call may free pages for future
allocation which can cause copy-on-write.
0 Examples
No examples for gc/freeze.
See Also
No see-alsos for gc/freeze
0 Notes
No notes for freeze