Shared keyword and the GC?

Jacob Carlborg doob at me.com
Mon Oct 22 12:16:45 PDT 2012


On 2012-10-22 19:44, Sean Kelly wrote:

> Blocks flagged as shared would be completely ignored by the thread-local GC collection.  Since shared data may never reference unshared data, that should avoid anything being collected that's still referenced.  I hadn't thought about "immutable" though, which may turn out to be a problem.

Funny thing, immutable was supposed to make it easier to do concurrency 
programming.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list