summaryrefslogtreecommitdiff
path: root/compiler/optimizing/graph_visualizer.cc
diff options
context:
space:
mode:
authorAlex Light <allight@google.com>2018-01-22 17:45:02 -0800
committerAlex Light <allight@google.com>2018-01-22 17:45:02 -0800
commit2a96fe8541b7179e923b6edd27dfe1b8ceb6988e (patch)
tree30ebaef5f4540ca7d1b21382b87c7bf9b358cbdb /compiler/optimizing/graph_visualizer.cc
parentd78ca5213b780ca3165acb68e44f88f639e8ca45 (diff)
Change envs_lock_ to a ReaderWriterMutex
We were getting a lot of contention on this mutex because it needs to be held to run through the list of all active environments. Since this list is only rarely modified we change the lock to a ReaderWriterMutex and only lock it exclusive when we need to modify it. Test: Examine systrace of startup with DDMS monitor running. Bug: 72336488 Change-Id: Ie161b0f9c624384fcf36272c6edb78c4a7164149
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions