summaryrefslogtreecommitdiff
path: root/libutils/Unicode_test.cpp
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2016-06-15 15:49:50 -0700
committerChristopher Ferris <cferris@google.com>2016-08-25 15:01:53 -0700
commit0c572d01afdf9bfee340ab5c167d744ea91316bf (patch)
treedcb17f38144e26d904c3f17bf9085315c7fabffb /libutils/Unicode_test.cpp
parent708b9d118a809c50bd6c6ddaf0de7e08589c1c54 (diff)
Fix race condition updating local map data.
If the underlying local map changes, it's possible for multiple threads to try and modify the map data associated with the UnwindLocalMap object. Add a lock when generating the local map to avoid this problem. In addition, add a read lock whenever any caller gets the maps iterator. Updated all iterator callers to make this lock. Bug: 29387050 Bug: 31067025 (cherry picked from commit 3a14004c7f521cf2ca6dfea182fa7441e77c97e7) Change-Id: Id00116f156a24b36085c0d5dfc3dde4d2ac55194
Diffstat (limited to 'libutils/Unicode_test.cpp')
0 files changed, 0 insertions, 0 deletions