Artifacts Associated With Ticket 2777803fffffffff
Ticket change [ab769edc39] (rid 101121) by melbardis on 2009-04-21 19:44:23:
- assignee initialized to: "vasiljevic"
- cmimetype initialized to: "text/plain"
- comment initialized to:
there appears to be a memory leak when sourcing ttrace.tcl. namespace eval ttrace { ... variable mutex thread::mutex variable elock [$mutex create] ...} the mutex elock is never released when the thread & interpreter are recycled (i am using websh). i added a specific mutex destroy comand in the ttrace::cleanup procedure which solved the leak. but i don't think this is correct.. i am using the latest thread from the cvs repository, with changes to replace Tcl_Alloc with ckalloc... - foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "melbardis"
- subsystem initialized to: "80. Thread Package"
- title initialized to: "memory leak in ttrace"
- type initialized to: "Bug"
Ticket change [0099906de6] (rid 119348) by ferrieux on 2009-05-05 04:33:48:
- closedate changed to: "2009-05-04T21:33:48"
- closer changed to: "ferrieux"
- icomment:
Mutexes and other sync primitives are opaque handles, not Tcl_Obj values, and are not managed through the usual Tcl-level refcounts. Hence the need for explicit [thread::mutex destroy] et al. So the cleanup procedure is actually the idiomatic way of doing it.
- login: "ferrieux"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Closed"
- username: "ferrieux"