Mac Apps That Use Garbage Collection Must Move to ARC

weaselcat via Digitalmars-d digitalmars-d at puremagic.com
Wed Feb 25 20:51:51 PST 2015


On Thursday, 26 February 2015 at 04:08:32 UTC, Walter Bright 
wrote:
> On 2/25/2015 7:27 PM, deadalnix wrote:
>> On Thursday, 26 February 2015 at 02:48:15 UTC, Walter Bright 
>> wrote:
>>> Writing a generational collector for D is possible right now 
>>> with no language
>>> changes, it's just that nobody has bothered to do it. Don't 
>>> need write
>>> barriers for it, either.
>> How are you planning to track assignment a pointer to the 
>> young generation in
>> the old generation ? Because if you plan to rescan the whole 
>> old generation,
>> this is not exactly a generational GC.
>
> A lot of benefit simply came from compacting all the remaining 
> used allocations together, essentially defragging the memory.

Is this implying you've begun work on a compacting D collector, 
or are you relating to your Java experiences?


More information about the Digitalmars-d mailing list