[Issue 1382] memory allocated for arrays in CTFE functions during compilation is not released

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jan 24 02:21:27 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=1382



--- Comment #12 from Leandro Lucarella <leandro.lucarella at sociomantic.com> 2012-01-24 02:19:04 PST ---
(In reply to comment #11)
> I made an experimental build of dmd that uses a gc. The compiler slowed down
> quite a bit.

In which cases did you tried it? For files that allocates a lot of "CTFE
memory" it should be the other way around, as the memory consumption is so high
that the system is using most of the time moving things around between the
memory and the swap.

Do you have a patch that I can try (for D1)? Thanks.

As bad as it sounds, maybe a good tradeoff would be to add a command line
option (as obscure an undocumented as you want) to activate the GC for cases
where not using it is not really an option. Being that it seems that this bug
is really hard, I think it might deserve looking for a workaround to be able to
use the compiler in this extreme cases in the short term.

-- 
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