[Issue 6445] [CTFE] Absurd memory usage (still) on building array
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Aug 6 23:45:25 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6445
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |clugdbug at yahoo.com.au
--- Comment #2 from Don <clugdbug at yahoo.com.au> 2011-08-06 23:45:24 PDT ---
(In reply to comment #0)
> The following program uses over a gigabyte of memory at compile time. I
> thought these kinds of issues were fixed by the rewrite of CTFE in the last
> release.
No, bug 1382 is still open. Some cases of it have been fixed (eg, the one in
comment 4). I'm not sure why this particular case is so bad, I'll take a look
at it when I get a chance.
Note that CTFE still uses copy-on-write for values, and no memory is ever
released (this is more general than bug 1382). My guess is that the code below
just runs for a very long time.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list