Typed GC

Frustrated c1514843 at drdrb.com
Wed Feb 12 11:24:12 PST 2014


On Wednesday, 12 February 2014 at 17:50:25 UTC, thedeemon wrote:
> On Wednesday, 12 February 2014 at 12:11:04 UTC, Shammah 
> Chancellor wrote:
>> With all the talk of garbage collection.  I was wondering if 
>> it would be useful to make the GC typed.  If it was typed, it 
>> maybe be possible to make it more efficient via type 
>> information, (such as only scanning reference fields).   Also, 
>> it could have access to attribute information if applicable.
>>
>> -S.
>
> This is how "almost precise" GC used in VisualD works. Type 
> information is used to mark all pointers in most heap objects, 
> but objects on stack and closures are still scanned 
> conservatively, IIRC. Unfortunately this GC is not included in 
> the  main D distribution, probably because it's considered to 
> not be tested well enough.

But if we could drop in any gc version then it would't matter. It
would be nice to be able to choose your own poison rather than it
forced down your throat... that that it matters... I just like
happy endings!


More information about the Digitalmars-d mailing list