Overview
| Artifact ID: | d8ad931e6be2d3603bf8dde23f7bc9e7ef3b704c |
|---|---|
| Ticket: | 3382401fffffffffffffffffffffffffffffffff
Thread pool leaks memory |
| User & Date: | auriocus on 2011-07-29 19:34:15 |
Changes
- assignee changed to: "vasiljevic"
- cmimetype changed to: "text/plain"
- comment changed to:
Using thread pool to do a computation in parallel with many thousand tasks, I noticed, that tpool leaks memory. The script attached demonstrates the loss both in ActiveTcl 8.5.10.1 on Windows/64 and in tcl8.6 HEAD on Mac OSX. My real computation ran for several hours on 6 cores and the leaked memory summed up to several hundred MB. I could not locate the leakage any further, first I thought the culprit was the tpool::wait command with the list result, but replacing it with a simple "after" in the test case has no influence. Also, tpool::release can not free the leaked memory.
- foundin changed to: "None"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "auriocus"
- subsystem changed to: "80. Thread Package"
- title changed to: "Thread pool leaks memory"
- type changed to: "Bug"