Re: GC.collect() and GC.minimize() not releasing memory

2011-01-07 Thread Simen kjaeraas

Stewart Gordon smjg_1...@yahoo.com wrote:


On 24/12/2010 06:13, torhu wrote:

This newsgroup is just for automated use by Bugzilla.

snip

Where is the official statement of this?


Likely there is no hard official statement. However,
http://www.digitalmars.com/NewsGroup.html states that it is for Bug
reports for D compiler and library. Those use Bugzilla for bug reports,
and free-floating posts in the newsgroup are not tracked like those in
Bugzilla, giving them a lot less value.

--
Simen


Re: GC.collect() and GC.minimize() not releasing memory

2011-01-07 Thread Walter Bright

Simen kjaeraas wrote:

Stewart Gordon smjg_1...@yahoo.com wrote:


On 24/12/2010 06:13, torhu wrote:

This newsgroup is just for automated use by Bugzilla.

snip

Where is the official statement of this?


Likely there is no hard official statement. However,
http://www.digitalmars.com/NewsGroup.html states that it is for Bug
reports for D compiler and library. Those use Bugzilla for bug reports,
and free-floating posts in the newsgroup are not tracked like those in
Bugzilla, giving them a lot less value.



That's right. It's just not useful to post free floating posts here. Bug reports 
should go in bugzilla.


Re: GC.collect() and GC.minimize() not releasing memory

2011-01-07 Thread Simen kjaeraas

 Walter Bright newshou...@digitalmars.com wrote:


Simen kjaeraas wrote:

Stewart Gordon smjg_1...@yahoo.com wrote:


On 24/12/2010 06:13, torhu wrote:

This newsgroup is just for automated use by Bugzilla.

snip

Where is the official statement of this?

 Likely there is no hard official statement. However,
http://www.digitalmars.com/NewsGroup.html states that it is for Bug
reports for D compiler and library. Those use Bugzilla for bug reports,
and free-floating posts in the newsgroup are not tracked like those in
Bugzilla, giving them a lot less value.



That's right. It's just not useful to post free floating posts here. Bug  
reports should go in bugzilla.


And right there is your official statement^ :p

--
Simen


GC.collect() and GC.minimize() not releasing memory

2010-12-23 Thread %u
Hi,

I'm running this piece of code, but the memory isn't getting freed (as judging
from Task Manager). It doesn't help if I call collect() and minimize() in a
loop... is something wrong? Or is Task Manager not a reliable indicator of this?

Thank you!


import std.stdio;
import core.memory;
import core.thread;

void writelnflush(T...)(T args) { writeln(args); stdout.flush(); }
void allocate() { new byte[1024 * 1024 * 64]; }

void main()
{
writelnflush(Sleeping (check the memory usage!)...);
Thread.sleep(4 * 1000);
writelnflush(Allocating...);
allocate();
writelnflush(Collecting...);
GC.collect();
GC.minimize();
writelnflush(Sleeping (check the memory usage!)...);
Thread.sleep(4 * 1000);
}


Re: GC.collect() and GC.minimize() not releasing memory

2010-12-23 Thread torhu
This newsgroup is just for automated use by Bugzilla.  You should post 
to d.D or d.learn instead.  Or use the Bugzilla at 
http://d.puremagic.com/issues/ (search before posting a new issue).