The "no gc" crowd

Jacob Carlborg doob at me.com
Wed Oct 9 04:30:32 PDT 2013


On 2013-10-09 05:31, Walter Bright wrote:

> Making this work is fraught with difficulty. It is normal behavior in D
> to create local data with new(), build a data structure, and then cast
> it to shared so it can be transferred to another thread. This will fail
> miserably if the data is allocated on a thread local heap.

I agree with Andrei here. Alternatively perhaps the runtime can move the 
data to a global pool if it's casted to shared.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list