Open Bug 1005335 Opened 12 years ago Updated 3 years ago

Atomic compareExchange doesn't set the old value anywhere if swap is not performed

Categories

(Core :: MFBT, defect)

defect

Tracking

()

People

(Reporter: bent.mozilla, Unassigned)

Details

According to http://en.cppreference.com/w/cpp/atomic/atomic/compare_exchange we're supposed to set the expected value to the current value if the swap is not performed. Our implementation doesn't do this for either gcc or msvc so the old value is never accessible.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.