Thread local and memory allocation

Walter Bright newshound2 at
Tue Oct 4 01:52:01 PDT 2011

On 10/4/2011 1:22 AM, deadalnix wrote:
> Do you mean manage the memory that way :
> Shared heap -> TL pool within the shared heap -> allocation in thread from TL pool.
> And complete GC collect.


> This is a good solution do reduce contention on allocation. But a very different
> thing than I was initially talking about.


> Back to the point,
> Considering you have pointer to immutable from any dataset, but not the other
> way around, this is also valid to get a flag for it in the allocation interface.
> What is the issue with the compiler here ?

Allocate an object, then cast it to immutable, and pass it to another thread.

More information about the Digitalmars-d mailing list