[issue42039] Add gc.track and gc.untrack

Pablo Galindo Salgado report at bugs.python.org
Thu Oct 15 05:40:32 EDT 2020


Pablo Galindo Salgado <pablogsal at gmail.com> added the comment:

You mean because we need to modify _gc_prev and they may be in an inconsistent state? I may be missing something, but the only tricky moment is if someone calls this from a finalizer and in that case we have already constructed the reachable and unreachable sets. Or are you referring to other possible crashes?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42039>
_______________________________________


More information about the Python-bugs-list mailing list