Safety, undefined behavior, @safe, @trusted

Robert Jacques sandford at jhu.edu
Thu Nov 5 16:59:00 PST 2009


On Thu, 05 Nov 2009 17:11:38 -0500, Walter Bright  
<newshound1 at digitalmars.com> wrote:

> dsimcha wrote:
>> Ok, I understand the basic principle of a reap, but if it's going to  
>> convert to a
>> heap when you try to delete something, why not just improve the  
>> standard GC heap,
>> i.e. by making per-thread heaps?
>
> The problem with per-thread heaps is immutable data can be passed  
> between threads.

I always assumed that with thread local heaps, both immutable and shared  
data would be allocated from a shared heap. Also, the shared heap should  
use some form of thread local allocation.



More information about the Digitalmars-d mailing list