General Problems for GC'ed Applications?
Karen Lanrap
karen at digitaldaemon.com
Fri Jul 28 01:44:29 PDT 2006
Walter Bright wrote:
> that would be a terrible design if it did.
Then have a look what the code below compiled (dmd 0.163; win) is
doing under XPSP2.
1) Start it with for example the command
<exeName> 400 100
in as shell
2) wait until initializing is done
3) veriify in task manager, that allocated memory is about 400M
4) minimize shell
5) observe in task manager, that allocated memory reduces to 100M
6) Start it with for example the command
<exeName> 400 100 -lg
in as shell
7) wait until initializing is done
8) veriify in task manager, that allocated memory is about 400M
9) minimize shell
10) observe in task manager, that allocated memory does not redcue
Note: -lg means leak and use GC
Note: If main mmeory has 1GB, the call "<exeName> 1200 400 -lg" will
cause thrashing.
Note: If main memory has 1GB you can have several shells running the
command "<exeName> 500 100"
but not with the command "<exeName 500 100 -lg"
More information about the Digitalmars-d
mailing list