Linus with some good observations on garbage collection

Robert Jacques sandford at jhu.edu
Sun Apr 24 19:25:47 PDT 2011


On Sun, 24 Apr 2011 21:13:43 -0400, Andrei Alexandrescu  
<SeeWebsiteForEmail at erdani.org> wrote:

> On 04/24/2011 08:08 PM, Iain Buclaw wrote:
>> == Quote from Timon Gehr (timon.gehr at gmx.ch)'s article
>>> Andrei Alexandrescu wrote:
>>>> I am sorry, you simply have no case - each and every argument you put
>>>> forth has no strength or is just wrong. We could spend time on  
>>>> debating
>>>> each, but I suspect that would do little toward convincing you of what
>>>> is after all a simple fact, but one with many subtle facets. It might
>>>> not a good use of our time to further engage in a diatribe on this.  
>>>> The
>>>> delete keyword will go, as will class-specific new and delete.
>>>>
>>>>
>>>> Andrei
>>
>> Is it correct that the current D GC implementation puts delete'd  
>> allocations into
>> a freelist (or bucket) to be reused when 'new' is invoked again?
>
> I don't know. If it does, an additional level of freelists only hurts.

To the best of my knowledge, for 'small' allocations, the current GC uses  
free-lists of power-of-2 sized blocks. (I think small is defined as  
anything under 4k)


More information about the Digitalmars-d mailing list