[dmd-internals] __gshared vs shared

Alex Rønne Petersen xtzgzorex at gmail.com
Sat May 5 08:53:04 PDT 2012


Hi,

On the druntime mailing list, we ended up discussing whether D
respects that global (__gshared) variables may well be changed by any
thread at any point in time. Is this the case? I.e. will the optimizer
refrain from treating a read of a __gshared value as invariant in a
loop?

Regards,
Alex


More information about the dmd-internals mailing list