commit | 4858e1dbfbccb287ad57868230a9e79011483c2a | [log] [tgz] |
---|---|---|
author | Jeff Hao <jeffhao@google.com> | Thu Sep 12 17:20:31 2013 -0700 |
committer | The Android Automerger <android-build@android.com> | Fri Sep 13 11:31:54 2013 -0700 |
tree | 7c1f7b32093b9837e890ab9a76338c0b5b87a26a | |
parent | 31fb301f2b711607cfaf399f4163d48b6e2cf649 [diff] |
Make inlined CAS32 loop until store is successful if values match. The native implementation of compareAndSwap uses android_atomic_cas, which will repeat the strex until it succeeds. The compiled version was changed to do the same. Bug: 10530407 Change-Id: I7efb3f92d0d0610fcc5a885e2c97f1d701b5a4ea (cherry picked from commit 2de2aa1a96dfa5bebc004f29b5dbfafd37039cee)