commit | a98ffd745bbecb2e84a492194950c0b94966546b | [log] [tgz] |
---|---|---|
author | Mathieu Chartier <mathieuc@google.com> | Thu Sep 25 17:03:12 2014 -0700 |
committer | Mathieu Chartier <mathieuc@google.com> | Fri Sep 26 10:28:20 2014 -0700 |
tree | 7470bcbb8fbc01eb80ed74ca585058dc4c81ee8e | |
parent | 266b4689731f2c69af0f2854aaab947cf6e89f84 [diff] |
Fix broken runtime SetStatsEnabled logic Previously, Runtime::SetStatsEnabled wouldn't take stats_enabled_ into account when deciding whether or not to increment / decrement teh stats enabled counter. This resulted in counter underflows and other errors which caused some CTS tests to fail. Also added some locking to prevent race conditions. Bug: 17360878 Change-Id: I779237d55dda4f35054a4d27fb2c660a38750fc0