Message235406
| Author |
François.Trahan |
| Recipients |
François.Trahan |
| Date |
2015年02月04日.21:42:16 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1423086136.45.0.600991266786.issue23394@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
When reaching the end of a script, there is no garbage collection done if another thread is running.
If you have cyclic references between objects that would be elligible for collection under one of which a __del__ would terminate that thread, execution will hang at the end of the "main thread".
We ended up in this situation; adding "gc.collect" at the end of our script solves the problem, but this is a library and it is not reasonnable to assume all our clients will properly ensure every execution path properly forces a garbage collection.
Suggestion: at the end of a thread, or at least main thread, force a collection. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2015年02月04日 21:42:16 | François.Trahan | set | recipients:
+ François.Trahan |
| 2015年02月04日 21:42:16 | François.Trahan | set | messageid: <1423086136.45.0.600991266786.issue23394@psf.upfronthosting.co.za> |
| 2015年02月04日 21:42:16 | François.Trahan | link | issue23394 messages |
| 2015年02月04日 21:42:16 | François.Trahan | create |
|