Message411332
| Author |
vstinner |
| Recipients |
corona10, erlendaasland, kumaraditya, miss-islington, petr.viktorin, phsilva, shihai1991, vstinner |
| Date |
2022年01月23日.02:22:48 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1642904568.35.0.341857552463.issue46417@roundup.psfhosted.org> |
| In-reply-to |
| Content |
> See also bpo-46476: Not all memory allocated by _Py_Quicken() is released at Python exit.
If you apply my workaround for bpo-46476:
https://bugs.python.org/issue46476#msg411321
Python no longer leaks any memory block at exit for the simplest command!
$ ./python -I -X showrefcount -c pass
[-5 refs, 0 blocks]
Moreover, I modified deepfreeze to only freeze importlib._bootstrap and importlib._bootstrap_external. It confirms that bpo-46449 is causing the negative reference count, because with these additional local changes I get a positive _Py_RefTotal:
$ ./python -I -X showrefcount -c pass
[6 refs, 0 blocks] |
|