Artifacts Associated With Ticket 1449383fffffffffffffffffffffffffffffffff
Ticket change [cfc404d5d3] (rid 113044) by dharan on 2006-03-14 06:57:47:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Hi, I have found a memory leak problem while using the TCL thread package. The Tcl version is 8.4.13 and Thread version is 2.6.2. I have also attached a sample script to support my findings. The sample script creates & releases 5 threads for 14 times . For each time , the memory of the tclsh process increases by 700 kb(avg). I have traced the memory through Windows Task Manager. please forgive me if I had done anything wrong. OS version : windows 2000 Thanks in Advance. Gangadharan. - foundin initialized to: "obsolete: 8.4.13"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dharan"
- subsystem initialized to: "49. Threading"
- title initialized to: "Memory leak in Thread"
- type initialized to: "Bug"
Ticket change [084dc873f5] (rid 89543) by dharan on 2006-03-14 13:57:47:
- icomment:
File Added - 170830: SampleTestuite2.itcl
- login: "dharan"
- mimetype: "text/plain"
- username: "dharan"
- icomment:
Add attachment "SampleTestuite2.itcl" [f4ccf53093] (rid 129987) by dharan on 2006-03-14 13:57:47.
Ticket change [23c6b72121] (rid 130994) by dkf on 2006-03-14 15:58:53:
- assignee changed to: "vasiljevic"
Ticket change [b31e231dfe] (rid 98466) by dgp on 2006-03-14 21:48:01:
- subsystem changed to: "80. Thread Package"
Ticket change [5fc3d08f2d] (rid 115872) by vasiljevic on 2006-03-15 04:00:34:
- icomment:
Logged In: YES user_id=95086 This is no leak. It is the fact that you are posting async scripts to a thread which has already exited. Such are kept in the Tcl event queue and remain stucked there forever. For such cases I have made the "reserve/release" wrappers. So you basically reserve the thread when you need it and then release it when not (the last releaser garbage-collects the thread). This way you are sure the thread will not be destroyed by somebody else until you are using it.
- login: "vasiljevic"
- mimetype: "text/plain"
- resolution changed to: "Wont Fix"
- status changed to: "Closed"
- username: "vasiljevic"
- icomment:
Ticket change [9884e6a310] (rid 110614) by vasiljevic on 2006-03-15 04:00:35:
- closedate changed to: "2006-03-14T21:00:35"
- closer changed to: "vasiljevic"
Ticket change [93ff8c94ff] (rid 105910) by nobody on 2006-04-04 16:33:59:
- icomment:
Logged In: NO In the sample script which had been attached, I had used the API ::thread::release to release the Tthraed. please let me know if the Sample Script requires any other steps to free the Thread.
- login: "nobody"
- mimetype: "text/plain"
- username: "nobody"
- icomment: