commit | c4adf54117b96a34df228c83127d0986a69dc198 | [log] [tgz] |
---|---|---|
author | Eric Holk <eholk@google.com> | Fri Oct 02 13:46:28 2020 -0700 |
committer | Treehugger Robot <treehugger-gerrit@google.com> | Thu Oct 08 21:35:09 2020 +0000 |
tree | f3dbfbd7686e7f473671da3c4b9ef83962c00ecc | |
parent | d02435d009798c5b0a6cf0193769360307f82aa4 [diff] |
[metrics] Make metrics atomic ART metrics need to be able to be updated by multiple threads. We make this safe by making each metric value atomic. Note that this may be a scalability bottleneck if some metrics become heavily contended. If that turns out to be the case, we can explore other strategies, such as thread-local copies of contended metrics. Bug: 170149255 Test: m test-art-host-gtest-art_libartbase_tests Change-Id: I5857a0184e5715aa67cc551e5ee238552a374143