[issue41389] Garbage Collector Ignoring Some (Not All) Circular References of Identical Type

Ian O'Shaughnessy report at bugs.python.org
Mon Jul 27 16:38:05 EDT 2020


Ian O'Shaughnessy <ian_osh at apple.com> added the comment:

"Leak" was likely the wrong word.

It does appear problematic though.

The loop is using a fixed number of variables (yes, there are repeated dynamic allocations, but they fall out of scope with each iteration), only one of these variables occupies 1MB of ram (aside from the static variable).

The problem: There's only really one variable occupying 1MB of in-scope memory, yet the app's memory usage can/will exceed 1GB after extended use.

At the very least, this is confusing – especially given the lack of user control to prevent it from happening once it's discovered as a problem.

----------

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


More information about the Python-bugs-list mailing list