[Issue 20837] [core.atomic] Provide MemoryOrder.con (consume) for atomicLoad

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed May 20 00:06:01 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=20837

--- Comment #2 from Witold Baryluk <witold.baryluk+d at gmail.com> ---
Hiroki,

yes, you are right, I did Hans Boehm other papers, but I did miss this one. To
make memory_order_consume worthwile and actually do something better than
memory_order_acquire it requires extra support from compiler (including
possibly annotations for killing dependencies) and defining precisely how it
work. This is missing right now (the current specification is not workable, and
not possible to really implement in compilers).

So, yes, to be postponed. And I guess, it is good phobos core.atomics and LLVM
didn't blindly pick it up.

Will close it for the time being.

--


More information about the Digitalmars-d-bugs mailing list