[issue19533] Unloading docstrings from memory if -OO is given

Stefan Krah report at bugs.python.org
Sat Nov 9 21:43:36 CET 2013


Stefan Krah added the comment:

R. David Murray <report at bugs.python.org> wrote:
> So the question is, if there is no longer a reference to the docstring, why isn't it garbage collected?  (I tested adding a gc.collect(), and it didn't make any difference.)

I think it probably is garbage collected but the freed memory is not returned to the OS
by the memory allocator.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19533>
_______________________________________


More information about the Python-bugs-list mailing list