Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2010-11-17
02:49 • Ticket [1745928fff] thread's memory isn't being released status stil... artifact: a60b33ea66 user: dgp
2010-09-29
03:05 • Ticket [1745928fff]: 4 changes artifact: d07e68a132 user: vasiljevic
2007-07-01
06:19 • New ticket [1745928fff]. artifact: 0c5adc1392 user: nobody

thread's memory isn't being released

Open1745928fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 16 years ago
Descriptionplain2007-07-01 06:19:42
when using thread::create, the memory allocated isn't free after the thread ends.
code:
-----------------------------
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\navidor>tclsh84
% package require Thread
2.6.5
% set t [thread::create {puts "a"}]; puts "$t"
tid00000A38
% a

% thread::names
tid0000012C
%
-------------------------------------------
I'm using winXP, tcl 8.4.14.0
proccess memory (from windows task manager):
before requiring Thread package: 2,808k
after     "          "         : 2,940k
after creating a thread (and after it ends): 3,716k
after few minutes of waiting: 84k

Is it familiar to anyone? any ideas?
vasiljevicplain2010-09-29 03:05:01
I can confirm this. Not only that... I can confirm a *huge* memory leak in the
current HEAD. This is very very odd as when I last touched the code it
was leak-free. I need to debug this further in order to (re)find the culprit.
dgpplain2010-11-17 02:49:32
status?
Log in (anonymous is fine) to add a comment.