Fix asm constraints in folly::MicroSpinLock::cas
Summary: If the compare part of cmpxchg fails, it writes the unexpected value to %rax. At certain optimization levels this was causing me to hit an incorrectly failed assertion in some thrift code. I also cleaned up the asm statement to use named operands. Test Plan: Added new test that fails before this diff. Reviewed By: delong.j@fb.com FB internal diff: D1083222 @override-unit-failures
Showing
Please register or sign in to comment