[issue40217] The garbage collector doesn't take in account that objects of heap allocated types hold a strong reference to their type

Tim Peters report at bugs.python.org
Thu Apr 23 17:53:05 EDT 2020


Tim Peters <tim at python.org> added the comment:

There is no possible world in which the best answer is "hack gcmodule.c" ;-)

I haven't tried to dig into the details here, but Pablo's approach looked spot-on to me:  put the solution near the source of the problem.  The problem is specific to a relatively tiny number of objects, and all gc asks is that they play by the rules.

----------

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


More information about the Python-bugs-list mailing list