- Python Home
- About
- News
- Documentation
- Downloads
- Community
- Foundation
- Developer's Guide
- Issue Tracker
- Issues
- Summaries
- User
- Administration
- Help
➜
This issue tracker has been migrated to GitHub,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
| Author | vstinner |
|---|---|
| Recipients | corona10, erlendaasland, vstinner |
| Date | 2021-01-08.13:59:38 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1610114378.27.0.714696476113.issue42866@roundup.psfhosted.org> |
| In-reply-to |
| Content |
|---|
Calling gc.collect() twice works around the issue, which sounds like a missing traverse function somewhere. diff --git a/Python/pystate.c b/Python/pystate.c index c791b23999..66bbe1bf7d 100644 --- a/Python/pystate.c +++ b/Python/pystate.c @@ -321,6 +321,7 @@ interpreter_clear(PyInterpreterState *interp, PyThreadState *tstate) /* Last garbage collection on this interpreter */ _PyGC_CollectNoFail(tstate); + _PyGC_CollectNoFail(tstate); _PyGC_Fini(tstate); /* We don't clear sysdict and builtins until the end of this function. |
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2021-01-08 13:59:38 | vstinner | set | recipients: + vstinner, corona10, erlendaasland |
| 2021-01-08 13:59:38 | vstinner | set | messageid: <1610114378.27.0.714696476113.issue42866@roundup.psfhosted.org> |
| 2021-01-08 13:59:38 | vstinner | link | issue42866 messages |
| 2021-01-08 13:59:38 | vstinner | create |
Powered by Roundup Copyright © 1990-2022, Python Software Foundation
Legal Statements
