#3105 thread exit wastes memory

obsolete: 8.4.9

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.

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) .


  • miguel sofer

    miguel sofer - 2005-05-18

    Logged In: YES

    zoran: what is the status on this? Accroding to dossy, it
    should be closed (http://dossy.org/archives/000122.html)

  • Zoran Vasiljevic

    Logged In: YES

    Oh... I already fixed that boith core-8-4-branch
    and in HEAD branch some weeks ago already.
    I will close this one.

  • Zoran Vasiljevic

    • status: open --> closed-fixed

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks