Shared keyword and the GC?

Jacob Carlborg doob at me.com
Thu Oct 18 12:22:06 PDT 2012


On 2012-10-18 20:54, Sean Kelly wrote:

> And back down to a local pool when shared is cast away.  Assuming the block is even movable.  I agree that this would be the most efficient use of memory, but I don't know that it's feasible.

You said the thread local heap would be merged with the global on thread 
termination. How is that different?

Alternative it could stay in the global heap. I mean, not many variables 
should be "shared" and even fewer should be casted back and forth.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list