GC, memory leaks and 32/64 bit

Benjamin Thaut code at benjamin-thaut.de
Wed Mar 13 07:20:59 PDT 2013


Am 13.03.2013 06:38, schrieb Rob T:
> On Tuesday, 12 March 2013 at 21:02:20 UTC, Benjamin Thaut wrote:
>> This is not possible as different kinds of GCs need to generate
>> different runtime data at compile time. The current GC for example
>> does not need any runtime data (other then what the D typeinfo system
>> already provides) but the percicse GC needs additional runtime
>> information, so you can't just "swap" them. You need to recompile.
>>
>> Kind Regards
>> Benjamin Thaut
>
> I don't know much about the problem, so this may be a dumb question, but
> I'll ask anyway.
>
> Can a loadable GC be made possible with an improved design? For example,
> can the component that generates the needed runtime data for the GC also
> be plugged in?
>
> --rt

The GC could load the needed runtime data from a file. But it would have 
to be generated a compile time anyway. so you always need to know at 
compile time which GCs you migth want to use in the future.

-- 
Kind Regards
Benjamin Thaut


More information about the Digitalmars-d-learn mailing list