OSDN Git Service

Add lock when iterating over BacktraceMap.
authorChristopher Ferris <cferris@google.com>
Fri, 17 Jun 2016 06:19:36 +0000 (23:19 -0700)
committerChristopher Ferris <cferris@google.com>
Thu, 25 Aug 2016 22:01:21 +0000 (15:01 -0700)
commit250a96671720090a3756d597a4bda0a394777222
tree2798999d26d972b94892d834a1264d2cfe7deea9
parentdb16f2a0a71503fe046e41fb8d249a1a25e0658e
Add lock when iterating over BacktraceMap.

In order to avoid a race condition in the maps data, acquire
a read lock while iterating over the maps data.

Bug: 29387050
Bug: 31067025

(cherry picked from commit 56f8b5631ab2874dc2ec385802e38555acac0d90)

Change-Id: I48ecd2705b4aa4eedfed1daae2eb3b9b8bf8dda9
runtime/mem_map.cc