commit | 7a6b966d348ee780922e04a8304d3dcc9e297517 | [log] [tgz] |
---|---|---|
author | Alex Light <allight@google.com> | Tue Dec 17 16:45:49 2019 -0800 |
committer | Treehugger Robot <treehugger-gerrit@google.com> | Wed Dec 18 17:52:56 2019 +0000 |
tree | d2267f6e09c0f1d92dbf527eeb499a37044e9be6 | |
parent | 96cbde8221731ac10bf6811ed4c415bbea45656b [diff] |
Fix reversed compare_exchange check. We were incorrectly stopping a retry-loop when compare_exchange_strong returned true instead of false. This could lead to races if multiple threads tried to pause allocations simultaneously. Test: ./test.py --host Bug: 146436130 Change-Id: I46ab86010d24148d640af0c51a5268b3eef0d300