[Issue 15751] atomicLoad doesn't return stable result if compiled with -profile
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Dec 10 09:41:43 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=15751
Tomáš Chaloupka <chalucha at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |chalucha at gmail.com
--- Comment #1 from Tomáš Chaloupka <chalucha at gmail.com> ---
Seems to be fixed in 2.089.0
Tried on run.dlang.org with:
```
import core.atomic;
int main()
{
shared int s = 0;
foreach (_; 0..10)
{
auto res = atomicLoad(s);
if (res != 0) return 1;
}
return 0;
}
```
came to this when trying profile something with dmd-2.088.1
--
More information about the Digitalmars-d-bugs
mailing list