[Issue 6607] critical_.d and critical.c use double check locking the wrong way

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Sep 6 14:33:42 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=6607



--- Comment #2 from deadalnix <deadalnix at gmail.com> 2011-09-06 14:33:22 PDT ---
Actually, even if the compiler do not reorder that, modern CPU can, and this is
out of control, unless specific precautions are used. It's even more
problematic now that almost everybody has a multicore CPU.

We need stronger guaranties to make the double check locking pattern valid, for
exemple guaranties that java's 5+ volatile keyword provide.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list