Overview
| Artifact ID: | b4b23d63fd3ccb6963e0044fc760d0046731de2a |
|---|---|
| Ticket: | 987512ffffffffffffffffffffffffffffffffff
mem-leak in thread::send -async |
| User & Date: | nobody on 2004-07-08 19:38:31 |
Changes
- assignee changed to: "vasiljevic"
- cmimetype changed to: "text/plain"
- comment changed to:
hi, I hope, this is a bug and is not work as designed :=) this testscript confiscated over 9MByte Ram. the call thread::send -async send 385 Bytes to the thread and after 25000 calls, the thread use ~9300 KByte memory (offset) ! after I release the thread, the memory will not be freed. if I send the script without -async, all memory will be freed. I have make the test with the current cvs snap-shot changelog -> R1.2132, Wed Jul 7 22:05:56 2004 on a linux 2.6.7 i386 & ppc system, with & without USE_THREAD_ALLOC in the CFLAG. before som days, i have posted a problem in the tcl-thread-list, i think, it is the same problem. regards, joerg set ::Thread { proc TestProc {args} { set x "xxxxxxxxxxxxxxxxxxxxxxxx" set x "xxxxxxxxxxxxxxxxxxxxxxxx" set x "xxxxxxxxxxxxxxxxxxxxxxxx" set x "xxxxxxxxxxxxxxxxxxxxxxxx" set x "xxxxxxxxxxxxxxxxxxxxxxxx" set x "xxxxxxxxxxxxxxxxxxxxxxxx" set x "xxxxxxxxxxxxxxxxxxxxxxxx" set x "xxxxxxxxxxxxxxxxxxxxxxxx" set x "xxxxxxxxxxxxxxxxxxxxxxxx" return 0 } TestProc } set thid [thread::create "thread::wait"] for {set ni 0} {$ni < 25000} {incr ni} {thread::send -async $thid $::Thread} thread::send $thid -async "thread::release" vwait forever - foundin changed to: "obsolete: 8.5a2"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "80. Thread Package"
- title changed to: "mem-leak in thread::send -async "
- type changed to: "Bug"