summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2016-02-27 21:10:34 -0700
committerJeff Sharkey <jsharkey@android.com>2016-02-27 21:15:01 -0700
commit3d1cb6a2b6882a9b702fc97aa50b2d5779956492 (patch)
tree1c2b760b33aa8667172e2f3f42034385fb718cf4 /tools/aapt2/java/JavaClassGenerator.cpp
parentb15a71913eaea4d2e7063437b3d1a8db5d98c221 (diff)
Utility to detect lock inversions in system.
This change adds a new LockGuard utility class that can be used to detect lock inversions across the system server. For example, if a thread is trying to acquire the ActivityManager lock while holding the PackageManager lock, it will yell. This class requires no prior knowledge of locks or their ordering; it derives all of this data at runtime. However, this means the overhead is substantial and it should not be enabled by default. Adds overrides to ArrayMap and ArraySet to use identityHashCode() instead of the hashCode() provided by the object. Bug: 27336728 Change-Id: I26c31bc99fe8d61ff13c3455aaeddd5517e44433
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions