Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #4091
| From | "Alexey Popkov" <lehin.p@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Memory leak or flawed garbage collector |
| Date | 2011-07-31 11:27 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <j13e6q$54f$1@smc.vnet.net> (permalink) |
| References | <j0u7mo$fc1$1@smc.vnet.net> <j10l01$os6$1@smc.vnet.net> |
"Oleksandr Rasputinov" <oleksandr_rasputinov@hmamail.com> wrote:
news:j10l01$os6$1@smc.vnet.net...
> Of course, it is quite possible that the references to your symbols
> responsible for their not being garbage-collected are somewhere other than
> the DownValues of In or Out, but if you find and remove these, you should
> find that the symbols are garbage-collected (unless for some reason they
> have had their Temporary attribute removed during the course of
> execution). If this does not occur after all references have been removed,
> then indeed a bug in the garbage collector would indeed be a possibility.
There is a bug in the garbage collector (non-removing unreferenced temporary
variables with their definitions):
In[1]:= $HistoryLength=0;
a[b_]:=Module[{c,d},d:=9;d/;b===1];
Length@Names[$Context<>"*"]
Out[3]= 6
In[4]:= lst=Table[a[1],{1000}];
Length@Names[$Context<>"*"]
Out[5]= 1007
In[6]:= lst=.
Length@Names[$Context<>"*"]
Out[7]= 1007
In[8]:= Definition@d$999
Out[8]= Attributes[d$999]={Temporary}
d$999:=9
This bug was originally reported in this MathGroup post:
http://forums.wolfram.com/mathgroup/archive/2010/Dec/msg00130.html
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Memory leak or flawed garbage collector "Fabrice P. Laussy" <fabrice.laussy@gmail.com> - 2011-07-29 12:05 +0000
Re: Memory leak or flawed garbage collector "Oleksandr Rasputinov" <oleksandr_rasputinov@hmamail.com> - 2011-07-30 10:04 +0000
Re: Memory leak or flawed garbage collector "Alexey Popkov" <lehin.p@gmail.com> - 2011-07-31 11:27 +0000
Re: Memory leak or flawed garbage collector "Oleksandr Rasputinov" <oleksandr_rasputinov@hmamail.com> - 2011-08-01 03:38 +0000
Re: Memory leak or flawed garbage collector "Alexey Popkov" <lehin.p@gmail.com> - 2011-08-02 11:12 +0000
Re: Memory leak or flawed garbage collector Daniel Lichtblau <danl@wolfram.com> - 2011-08-03 11:16 +0000
Re: Memory leak or flawed garbage collector "Oleksandr Rasputinov" <oleksandr_rasputinov@hmamail.com> - 2011-08-03 11:15 +0000
Re: Memory leak or flawed garbage collector "Alexey Popkov" <lehin.p@gmail.com> - 2011-08-11 09:19 +0000
Re: Memory leak or flawed garbage collector "Oleksandr Rasputinov" <oleksandr_rasputinov@hmamail.com> - 2011-08-12 09:11 +0000
csiph-web