A thought about garbage collection

Robert Jacques rjacque2 at live.johnshopkins.edu
Wed Dec 19 16:28:10 PST 2012


On Wed, 19 Dec 2012 16:58:59 -0600, bearophile <bearophileHUGS at lycos.com>  
wrote:

> Benjamin Thaut:
>
>> http://sebastiansylvan.wordpress.com/2012/12/01/garbage-collection-thoughts/
>
> It seems a nice blog post. I don't remember what D does regarding  
> per-thread heaps.

It's been proposed and (sadly) rejected.

> Maybe Phobos emplace() is not enough and a bigger/better gun is needed  
> to safely allocate in-place a higher percentage of class instances.

It would be fairly easy to build a library function(i.e. Scope!T or  
InPlace!T) that uses emplace to store a class inside of a wrapper struct.


More information about the Digitalmars-d mailing list