Escaping the Tyranny of the GC: std.rcstring, first blood

Kagamin via Digitalmars-d digitalmars-d at puremagic.com
Tue Sep 16 02:00:26 PDT 2014


On Tuesday, 16 September 2014 at 05:22:15 UTC, Rainer Schuetze 
wrote:
> Huuh? So you must not read a reference to a ref-counted object 
> that might get changed in another thread?

A slice is two words, concurrently reading and writing them is 
not thread-safe in current GC model too, as another thread can 
get in between writing length and ptr fields, so it's not a new 
behavior.


More information about the Digitalmars-d mailing list