Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2005-05-19
03:31 • Closed ticket [1178445fff]: thread exit wastes memory plus 7 other changes artifact: c8a8453b4b user: vasiljevic
02:27 • Ticket [1178445fff]: 4 changes artifact: fcba8a2360 user: msofer
2005-04-07
11:20 • New ticket [1178445fff]. artifact: 4c9f7329b6 user: vasiljevic

thread exit wastes memory

Closed / Fixed1178445fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2005-04-07 11:20:14
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) .
msoferplain2005-05-19 02:27:27
Logged In: YES 
user_id=148712

zoran: what is the status on this? Accroding to dossy, it
should be closed (http://dossy.org/archives/000122.html)
vasiljevicplain2005-05-19 03:31:38
Logged In: YES 
user_id=95086

Oh... I already fixed that boith core-8-4-branch
and in HEAD branch some weeks ago already.
I will close this one.
Log in (anonymous is fine) to add a comment.