Since 8.4.7 in an attempt to cleanup properly after calling
Tcl_Finalize(), a large memory waste has been opened
when Tcl-lib generated threads exit. This is observed on
threaded builds (--enable-threads) and only in the default
threaded memory allocator (-DUSE_THREAD_ALLOC=1).
This is not a memory leak per-se, hence it is not simple to
verify this with memory-leak analysis tools like e.g.
Purify.
To reproduce, compile Tcl library with threads enabled,
checkout and compile the Tcl threading extension and
try out this commands:
package req Thread
time {thread::join [thread::create -joinable ""]} 10000
while observing the process virtual/resident memory usage
(using the "top" utility or similar) .
Zoran Vasiljevic
41. Memory Allocation
obsolete: 8.4.9
Public
|
Date: 2005-05-18 20:31 Logged In: YES |
|
Date: 2005-05-18 19:27 Logged In: YES |
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2005-05-18 20:31 | vasiljevic |
| resolution_id | None | 2005-05-18 20:31 | vasiljevic |
| close_date | - | 2005-05-18 20:31 | vasiljevic |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use