[issue42887] 100000 assignments of .__sizeof__ cause a segfault on del
Mark Shannon
report at bugs.python.org
Tue Jan 19 10:11:28 EST 2021
Mark Shannon <mark at hotpy.org> added the comment:
It won't solve the problem.
Maybe make it would make it easier to avoid the segfault, but some sort of recursion/overflow check is needed.
It might make the use of the trashcan cheaper, as it only need be used when stack space is running low.
Ultimately, the cycle GC needs to be iterative, rather than recursive. That will take a *lot* of work though.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42887>
_______________________________________
More information about the Python-bugs-list
mailing list