commit | 60c72c0a4cec04c4a85255c6965d6493337b3c80 | [log] [tgz] |
---|---|---|
author | Kevin Tang <zhikait@codeaurora.org> | Wed May 17 18:14:20 2017 -0700 |
committer | Wyatt Riley <wyattriley@google.com> | Fri May 19 14:43:27 2017 -0700 |
tree | d872039b76feff39dc9c3d0398c81304cfc867ca | |
parent | fe54f03c362a39e88a5b4a77713b75be4becf965 [diff] |
make LocSharedLock::mRef ops atomic The current share() and drop() calls are not thread safe, which can cause memory heap correuption. This changes the read / write ops to be atomic. Bug: 37853905 Test: GPS incl. XTRA delete working on Pixel Change-Id: Ic241d4573bdf2e58c4e264e97bd41b56f882c791 CRs-Fixed: 975372