Manual garbage collection in child process.#191
Conversation
Automatic gc may not be called before the child process exits. Resources may not be recycled properly without calling gc in the child process.
|
Thanks for the patch. I was not aware of this issue. Can you give some more info / details on what resources may be affected in parent process? An example demonstrating it would be helpful, as similar issue may be with pycos project. Thinking about it now, may be destrcutors in job may not be executed? |
|
When the subprocess gets reference counts problem, the exec part does not release memory. It's common that code has reference counting problem, like the code below does not remove the temporary file after running dispy job but in a regular python program, the temporary file can be removed automatically. When dispy executes thousands of jobs without calling gc to recycle bad referenced objects, the small leaks in each execution cannot be ignored. |
Automatic gc may not be called before the child process exits. Resources
may not be recycled properly without calling gc in the child process.