View · Search · Index
No registered users in community xowiki
in last 10 minutes

[Xotcl] memory leak problem

From: Victor Mayevski <vitick_at_gmail.com>
Date: Thu, 22 Oct 2009 00:37:12 -0700

Hello,

I am using XOTcl 1.6.3, on 64bit Linux platform, with ActiveState
8.6.b2 distribution. The distribution itself is 32bit. I also tried
and have the same problem with 32bit ActiveState 8.5.7 version.

The simplest way to reproduce the problem is to do the following:

Class X;

set parameter_list {parameter1 parameter2 .... parameter100}; ### 100
or so values

X instproc init args {
   my requireNamespace; ### I need that
foreach p [set ::parameter_list] {
   my parametercmd $p;
   my $p {};
};
next;
};

#then run the following

time {X x; x destroy} 1000000


### the above line eats up a lot of memory and it is not being
released during destruction of an instance.


Thanks.