[dmd-concurrency] draft 7
Andrei Alexandrescu
andrei at erdani.com
Mon Feb 1 22:50:47 PST 2010
Sean Kelly wrote:
> I think there's definite value in just being able to constrain compiler optimization, since it's necessary for anyone who wants to implement a concurrency library. As long as the compiler is required to treat inline asm as effectively volatile then we're in decent shape on platforms the compiler supports inline asm for though. For others I guess we'll have to trust that no optimization would occur across opaque function calls? I recall this sort of thing coming up in the C++ 0x memory model talks, and I wish I had a clearer recollection of what came out of it... or that Hans Boehm were a part of this conversation.
Isn't it enough that shared data is always handled as volatile?
Andrei
More information about the dmd-concurrency
mailing list