A benchmark, mostly GC

Timon Gehr timon.gehr at gmx.ch
Sun Dec 11 12:55:57 PST 2011


On 12/11/2011 07:02 PM, deadalnix wrote:
> Le 11/12/2011 16:43, Dejan Lekic a écrit :
>>
>> It would be really great to implement a generational GC similar to the
>> C4 mentioned in this presentation:
>> http://www.infoq.com/presentations/Understanding-Java-Garbage-Collection
>> . There is a research-paper about C4 as well:
>> http://dl.acm.org/citation.cfm?id=1993491 .
>
> This GC (like all compacting GC) require that the GC knows what is a
> reference/pointer and what isn't.
>
> This is possible in D using the compile time reflexion to build a
> runtime reflexion. But the standard lib is far away from that. This will
> also bloat the executable with reflexion's data, thing that some don't
> want.

The information has to be generated by the compiler, not by the library.

>
> By the way, this show up the fact that, depending on needs, people will
> require different GC and that the lib should allow us to choose the one
> we want. For exemple with a compiler switch (gc-module=xxx for example).



More information about the Digitalmars-d mailing list