[Issue 9099] core.atomic.atomicLoad() cannot handle non-POD structs

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Dec 28 16:10:44 PST 2012


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



--- Comment #5 from Walter Bright <bugzilla at digitalmars.com> 2012-12-28 16:10:42 PST ---
atomicLoad()'s implementation assumes that 8 byte structs are returned in
EDX:EAX. This is not correct for non-POD structs, which are always returned via
a hidden pointer to the return result on the caller's stack.

There is no way for atomicLoad() to detect this.

See Issue 9237.

-- 
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