commit | 51d5a30592d1e6f6129cf8628178b201d345ce36 | [log] [tgz] |
---|---|---|
author | Alex Light <allight@google.com> | Tue Apr 09 11:22:17 2019 -0700 |
committer | Treehugger Robot <treehugger-gerrit@google.com> | Tue Apr 09 22:44:09 2019 +0000 |
tree | 87a652b43454b9fcf941388abfac3623cb19026b | |
parent | ecd21be250c434d854833aa368610c879fea9245 [diff] |
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