Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7367ba4c3437de1dcd787160d6c4b04e68d4c83f
Ticket: 987512ffffffffffffffffffffffffffffffffff
mem-leak in thread::send -async
User & Date: vasiljevic on 2004-07-10 21:53:37
Changes

  1. icomment:
    Logged In: YES 
    user_id=95086
    
    Let us first clarify this: 
     
       thread::send $thid -async "thread::release" 
     
    is wrong, hence you never release the thread actually. 
    You should have written: 
       
      thread::send -async $thid  "thread::release" 
     
    But, it is perfectly sufficient to call: 
     
       thread::release  $thid 
     
    from the main thread, i.e. w/o posting an async event 
    to the worker thread. 
     
    Now, if you modify your test-bed and run again, the 
    memory should be released. Each thread cleans-up 
    its unserviced events on exit so I should not expect 
    any problems there. Otherwise we'll have to dig into 
    more deeply. 
     
    Tell me what u get. 
    
    
  2. login: "vasiljevic"
  3. mimetype: "text/plain"
  4. username: "vasiljevic"