Shared keyword and the GC?
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Mon Oct 22 13:44:33 PDT 2012
On 10/22/12 3:16 PM, Jacob Carlborg wrote:
> 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.
But not garbage collection.
Andrei
More information about the Digitalmars-d
mailing list