Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#3734 thread's memory isn't being released

obsolete: 8.4.14
open
5
2014-08-22
2007-07-01
Anonymous
No

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?

Discussion

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

     
  • Don Porter
    Don Porter
    2010-11-16

    status?