digitalmars.D - core.atomic bug? windows 2008r2 dmd 2.69.2 x64
struct sts { size_t a1; struct m1{ size_t a9; size_t a10; } shared m1 t1; } int main(string[] argv) { auto y1 = new sts(); cas(&y1.t1,y1.t1,y1.t1); return 0; }
Jan 04 2016
On Tuesday, 5 January 2016 at 00:58:57 UTC, sdv wrote:struct sts { size_t a1; struct m1{ size_t a9; size_t a10; } shared m1 t1; } int main(string[] argv) { auto y1 = new sts(); cas(&y1.t1,y1.t1,y1.t1); return 0; }align(16) //<<<-----------------------fix struct sts { size_t a1; struct m1{ size_t a9; size_t a10; } shared m1 t1; } int main(string[] argv) { auto y1 = new sts(); cas(&y1.t1,y1.t1,y1.t1); return 0; } good
Jan 04 2016