Commit 4465db53 authored by Alex Light's avatar Alex Light
Browse files

Use unique mutex to synchronize runtime_callbacks

Initially we would use the mutator_lock_ to manage changes to the
runtime_callbacks list. Over time this stopped being sufficent. This
changes to using an explicit r/w mutex to manage these lists. Since
these callbacks are not modified very often we use a single mutex for
all of them.

Test: ./test.py --host
Test: ./art/tools/run-libjdwp-tests.sh --mode=host

Bug: 121052811
Change-Id: I3ca44402a5f6290701fa8e28d18e6afe8786214c
(cherry picked from commit 51d5a30592d1e6f6129cf8628178b201d345ce36)
parent edfeb775
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment