Skip to content
Tcl Source Code History Of Ticket 2777803fffffffffffffffffffffffffffffffff
Login

History Of Ticket 2777803fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 2777803fffffffffffffffffffffffffffffffff

  1. Ticket change [ab769edc39] (rid 101121) by melbardis on 2009-04-21 19:44:23:

    1. assignee initialized to: "vasiljevic"
    2. cmimetype initialized to: "text/plain"
    3. 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...
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "melbardis"
    10. subsystem initialized to: "80. Thread Package"
    11. title initialized to: "memory leak in ttrace"
    12. type initialized to: "Bug"
  2. Ticket change [0099906de6] (rid 119348) by ferrieux on 2009-05-05 04:33:48:

    1. closedate changed to: "2009-05-04T21:33:48"
    2. closer changed to: "ferrieux"
    3. 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.
      
      
    4. login: "ferrieux"
    5. mimetype: "text/plain"
    6. resolution changed to: "Invalid"
    7. status changed to: "Closed"
    8. username: "ferrieux"